From a3090ba6ae5b4f710e938d5016fabe009e8e1850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 20 Jul 2021 10:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E6=94=B6=E7=BC=A9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) => {