From 6946f16f3f5fe93f0fbfb630e0536ff346aa8885 Mon Sep 17 00:00:00 2001 From: sunyechun_cd Date: Mon, 4 Jan 2021 21:53:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/index.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/store/index.js b/store/index.js index 0467e037..280ce2b3 100644 --- a/store/index.js +++ b/store/index.js @@ -16,7 +16,7 @@ const store = new Vuex.Store({ active: 'componentPage', leftWinActive: '/pages/component/view/view', activeOpen: '', - menu: [], + menu: [], univerifyErrorMsg: '' }, mutations: { @@ -56,11 +56,10 @@ const store = new Vuex.Store({ state.menu = menu }, setUniverifyLogin(state, payload) { - typeof payload !== 'boolean' ? payload = !!payload : ''; - state.isUniverifyLogin = payload; - }, - setUniverifyErrorMsg(state,payload = ''){ - state.univerifyErrorMsg = payload + state.isUniverifyLogin = !!payload + }, + setUniverifyErrorMsg(state,payload = ''){ + state.univerifyErrorMsg = payload } }, getters: { @@ -122,4 +121,4 @@ const store = new Vuex.Store({ } }) -export default store +export default store