feat:动态路由样式调整

This commit is contained in:
有来技术
2021-11-28 22:49:07 +08:00
parent b048d19d22
commit 1d21c6b098
15 changed files with 146 additions and 150 deletions

View File

@@ -14,6 +14,7 @@ const appModule: Module<AppState, RootStateTypes> = {
mutations: {
TOGGLE_SIDEBAR: state => {
state.sidebar.opened = !state.sidebar.opened
console.log('state.sidebar.opened',state.sidebar.opened)
state.sidebar.withoutAnimation = false
if (state.sidebar.opened) {
Local.set('sidebarStatus', 1)
@@ -27,6 +28,7 @@ const appModule: Module<AppState, RootStateTypes> = {
state.sidebar.withoutAnimation = withoutAnimation
},
TOGGLE_DEVICE: (state, device) => {
console.log('TOGGLE_DEVICE',device)
state.device = device
}
},
@@ -37,7 +39,7 @@ const appModule: Module<AppState, RootStateTypes> = {
closeSideBar({commit}, {withoutAnimation}) {
commit('CLOSE_SIDEBAR', withoutAnimation)
},
toggleDevice({commit}, device) {
async toggleDevice({commit}, device) {
commit('TOGGLE_DEVICE', device)
}
}