优化
This commit is contained in:
parent
9ee3518b52
commit
1c3dc4f5ec
@ -11,10 +11,12 @@ const user = {
|
|||||||
SET_USER_INFO: (state, info) => {
|
SET_USER_INFO: (state, info) => {
|
||||||
localStorage.setItem('info', JSON.stringify(info))
|
localStorage.setItem('info', JSON.stringify(info))
|
||||||
state.info = info
|
state.info = info
|
||||||
|
console.log('state.info: ', state.info)
|
||||||
},
|
},
|
||||||
SET_USER_AUTH: (state, auth) => {
|
SET_USER_AUTH: (state, auth) => {
|
||||||
localStorage.setItem('auth', JSON.stringify(auth))
|
localStorage.setItem('auth', JSON.stringify(auth))
|
||||||
state.auth = auth
|
state.auth = auth
|
||||||
|
console.log('state.auth: ', state.auth)
|
||||||
},
|
},
|
||||||
SET_DEPLIST: (state, list = []) => {
|
SET_DEPLIST: (state, list = []) => {
|
||||||
state.deplist = list
|
state.deplist = list
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user