Your Name
2022-06-29 1b11fc88d2e58f2ea180c086d74ed17f3ea107e3
'uid'\
2 files modified
4 ■■■■ changed files
src/stores/userInfo.ts 2 ●●● patch | view | raw | blame | history
src/views/login/component/account.vue 2 ●●● patch | view | raw | blame | history
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{