This commit is contained in:
Taric Xin
2021-12-21 16:18:00 +08:00
parent 55f56f826a
commit 4e5b5b7989

View File

@ -135,8 +135,8 @@ export class EAUserService extends BaseService {
*/
async loadUserInfo() {
return this.asyncRequest(this.$api_get_user_by_token).then(res => {
this.cacheSrv.set(cacheConf.user, res.data);
this.settings.setUser(res.data);
this.cacheSrv.set(cacheConf.user, res);
this.settings.setUser(res);
});
}