This commit is contained in:
ronger 2021-04-26 09:46:03 +08:00
commit 9baa0695d5

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