feat: dir update

This commit is contained in:
pengYYYYY 2021-11-17 19:47:34 +08:00
parent 8c740c14be
commit 001abf0fd0
5 changed files with 9 additions and 5 deletions

View File

@ -37,8 +37,8 @@ export default [
},
{
title: '筛选列表页',
path: 'select',
component: '../pages/list/select/index.vue',
path: 'filter',
component: '../pages/list/filter/index.vue',
},
{
title: '树状筛选列表页',

View File

@ -2,3 +2,10 @@ export interface ResDataType {
code: number,
data: any
}
export interface MenuRoute {
path: string;
title?: string;
icon?: string;
children: MenuRoute[];
}

View File

@ -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;