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