diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 45d89bb..0e5ba8d 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -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) => {