src/stores/userInfo.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/login/component/account.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/stores/userInfo.ts
@@ -22,7 +22,7 @@ actions: { async setUserInfos(value: any) { this.userInfos.userName = value.username this.userInfos.uid = value.id this.userInfos.uid = value.uid this.userInfos.roles = value.role // const userName = Cookies.get('userName'); // // 模拟数据 src/views/login/component/account.vue
@@ -101,7 +101,7 @@ userInfo.setUserInfos(res.data.data) Session.set('token', res.data.data.accessToken); Session.set('projectId',''); Session.set('uid',res.data.data.id); Session.set('uid',res.data.data.uid); await initBackEndControlRoutes(); signInSuccess(); }else{