Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -8,6 +8,7 @@ import {useFrontendMenuStore} from "/@/stores/frontendMenu";
|
||||
export interface UserInfosState {
|
||||
id: '',
|
||||
avatar: string;
|
||||
is_superuser: boolean,
|
||||
username: string;
|
||||
name: string;
|
||||
email: string;
|
||||
|
||||
@@ -20,6 +20,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
mobile: '',
|
||||
gender: '',
|
||||
pwd_change_count:null,
|
||||
is_superuser: false,
|
||||
dept_info: {
|
||||
dept_id: 0,
|
||||
dept_name: '',
|
||||
@@ -48,6 +49,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
this.userInfos.dept_info = userInfos.dept_info;
|
||||
this.userInfos.role_info = userInfos.role_info;
|
||||
this.userInfos.pwd_change_count = userInfos.pwd_change_count;
|
||||
this.userInfos.is_superuser = userInfos.is_superuser;
|
||||
Session.set('userInfo', this.userInfos);
|
||||
},
|
||||
async setUserInfos() {
|
||||
@@ -66,6 +68,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
this.userInfos.dept_info = userInfos.data.dept_info;
|
||||
this.userInfos.role_info = userInfos.data.role_info;
|
||||
this.userInfos.pwd_change_count = userInfos.data.pwd_change_count;
|
||||
this.userInfos.is_superuser = userInfos.data.is_superuser;
|
||||
Session.set('userInfo', this.userInfos);
|
||||
}
|
||||
},
|
||||
@@ -87,6 +90,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
this.userInfos.dept_info = res.data.dept_info;
|
||||
this.userInfos.role_info = res.data.role_info;
|
||||
this.userInfos.pwd_change_count = res.data.pwd_change_count;
|
||||
this.userInfos.is_superuser = res.data.is_superuser;
|
||||
Session.set('userInfo', this.userInfos);
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user