🐛 修改个人信息后账户信息丢失问题修复
This commit is contained in:
parent
9bc7a5d65f
commit
2d844b1d8b
@ -30,7 +30,8 @@ export const mutations = {
|
|||||||
state.userInfo.nickname = data.nickname;
|
state.userInfo.nickname = data.nickname;
|
||||||
let user = {
|
let user = {
|
||||||
nickname: data.nickname,
|
nickname: data.nickname,
|
||||||
avatarURL: data.avatarUrl
|
avatarURL: data.avatarUrl,
|
||||||
|
account: this.state.userInfo.account
|
||||||
}
|
}
|
||||||
localStorage.setItem('user', JSON.stringify(user))
|
localStorage.setItem('user', JSON.stringify(user))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user