diff --git a/store/index.js b/store/index.js index 4b47087..72fd046 100644 --- a/store/index.js +++ b/store/index.js @@ -30,7 +30,8 @@ export const mutations = { state.userInfo.nickname = data.nickname; let user = { nickname: data.nickname, - avatarURL: data.avatarUrl + avatarURL: data.avatarUrl, + account: this.state.userInfo.account } localStorage.setItem('user', JSON.stringify(user)) }