|
@@ -16,7 +16,7 @@ const getDefaultState = () => {
|
|
|
isNotice: false,
|
|
|
websitNumber: '',
|
|
|
isCollapse: true,
|
|
|
- userInfo:JSON.parse(localStorage.getItem('supply_user')) || {}
|
|
|
+ userInfo: JSON.parse(localStorage.getItem('supply_user')) || {}
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -59,10 +59,10 @@ const mutations = {
|
|
|
SET_WEBSIT_NUMBER: (state, websitNumber) => {
|
|
|
state.websitNumber = websitNumber
|
|
|
},
|
|
|
- SET_USETINFO(state,data){
|
|
|
+ SET_USETINFO(state, data) {
|
|
|
state.userInfo = data
|
|
|
- }
|
|
|
-, showMessage: (state, value) => {
|
|
|
+ },
|
|
|
+ showMessage: (state, value) => {
|
|
|
if (value == 'yes') {
|
|
|
state.showMessages = true
|
|
|
} else {
|
|
@@ -70,7 +70,7 @@ const mutations = {
|
|
|
state.isNotice = true
|
|
|
}
|
|
|
},
|
|
|
- SET_MESSAGE(state,value){
|
|
|
+ SET_MESSAGE(state, value) {
|
|
|
state.showMessages = value
|
|
|
state.isNotice = value
|
|
|
}
|
|
@@ -152,7 +152,7 @@ const actions = {
|
|
|
commit('SET_CUSTOMERNUMBER', customerNumber)
|
|
|
commit('SET_NAME', nickName)
|
|
|
commit('SET_PHONE', userName)
|
|
|
- commit('SET_USETINFO',data)
|
|
|
+ commit('SET_USETINFO', data)
|
|
|
// commit("SET_MENUS", menus) // 触发vuex SET_MENUS 保存路由表到vuex
|
|
|
|
|
|
localStorage.setItem('supply_user', JSON.stringify(data))
|
|
@@ -213,6 +213,7 @@ const actions = {
|
|
|
removeUserid()
|
|
|
resetRouter()
|
|
|
commit('RESET_STATE')
|
|
|
+ localStorage.removeItem('user_change_num')
|
|
|
resolve()
|
|
|
})
|
|
|
.catch(error => {
|