mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 18:46:36 +08:00
feat: dir update
This commit is contained in:
parent
8c740c14be
commit
001abf0fd0
|
@ -37,8 +37,8 @@ export default [
|
|||
},
|
||||
{
|
||||
title: '筛选列表页',
|
||||
path: 'select',
|
||||
component: '../pages/list/select/index.vue',
|
||||
path: 'filter',
|
||||
component: '../pages/list/filter/index.vue',
|
||||
},
|
||||
{
|
||||
title: '树状筛选列表页',
|
||||
|
|
|
@ -2,3 +2,10 @@ export interface ResDataType {
|
|||
code: number,
|
||||
data: any
|
||||
}
|
||||
|
||||
export interface MenuRoute {
|
||||
path: string;
|
||||
title?: string;
|
||||
icon?: string;
|
||||
children: MenuRoute[];
|
||||
}
|
||||
|
|
|
@ -6,11 +6,8 @@ const state = {
|
|||
...STYLE_CONFIG,
|
||||
};
|
||||
|
||||
// 定义的state的初始值方法,传入state或者额外的方法,然后利用vuex的双向数据驱动进行值的改变
|
||||
// 可通过this.$store.commit(' ')调用,但是触发的是同步事件
|
||||
const mutations = {
|
||||
update(state, payload) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
state.showBreadcrumb = payload.showBreadcrumb;
|
||||
state.theme = payload.theme;
|
||||
state.layout = payload.layout;
|
||||
|
|
Loading…
Reference in New Issue
Block a user