修改侧边栏收缩问题

This commit is contained in:
熊丽君
2021-07-20 10:11:56 +08:00
parent 36be1fab44
commit a3090ba6ae

View File

@ -16,12 +16,12 @@ const mutations = {
if (state.sidebar.opened) {
Cookies.set('sidebarStatus', 1)
} else {
Cookies.set('sidebarStatus', 0)
Cookies.set('sidebarStatus', 1)
}
},
CLOSE_SIDEBAR: (state, withoutAnimation) => {
Cookies.set('sidebarStatus', 0)
state.sidebar.opened = false
Cookies.set('sidebarStatus', 1)
state.sidebar.opened = true
state.sidebar.withoutAnimation = withoutAnimation
},
TOGGLE_DEVICE: (state, device) => {