🐛 修改个人信息后账户信息丢失问题修复

This commit is contained in:
ronger 2021-04-24 22:25:28 +08:00
parent 9bc7a5d65f
commit 2d844b1d8b

View File

@ -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))
} }