src/store/modules/app.js
@@ -14,7 +14,17 @@ }), actions: { toggleSideBar(withoutAnimation) { return true console.log('toggleSideBar', withoutAnimation) if (this.sidebar.hide) { return false } this.sidebar.opened = !this.sidebar.opened this.sidebar.withoutAnimation = withoutAnimation if (this.sidebar.opened) { Cookies.set('sidebarStatus', 1) } else { Cookies.set('sidebarStatus', 0) } }, closeSideBar({ withoutAnimation }) { Cookies.set('sidebarStatus', 0)