gaoluyang
4 天以前 b3dc9a7a436626fe2b89f24c69f26e9badfeafd2
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)