From a0d94f6f097a4eabb6532f38ea17ec95106cdcb9 Mon Sep 17 00:00:00 2001 From: purocean Date: Thu, 10 Oct 2019 10:35:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E7=95=99=E4=B8=8A=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=BE=A7=E6=A0=8F=E5=92=8C=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/store/app.js b/frontend/src/store/app.js index 833b4a63..44ce7597 100644 --- a/frontend/src/store/app.js +++ b/frontend/src/store/app.js @@ -34,8 +34,8 @@ export default { state: { repositories: {}, tree: null, - showSide: true, - showView: true, + showSide: Storage.get('showSide', true), + showView: Storage.get('showView', true), showXterm: false, savedAt: null, currentContent: '', @@ -71,9 +71,11 @@ export default { }, setShowView (state, data) { state.showView = data + Storage.set('showView', data) }, setShowSide (state, data) { state.showSide = data + Storage.set('showSide', data) }, setShowXterm (state, data) { state.showXterm = data