Your Name
2022-06-29 1b11fc88d2e58f2ea180c086d74ed17f3ea107e3
'uid'\
已修改2个文件
4 ■■■■ 文件已修改
src/stores/userInfo.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/component/account.vue 2 ●●● 补丁 | 查看 | 原始文档 | 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{