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