From 3e7c2f26fa1bfed32ad8e00919edf3ab71930fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 18 Jun 2024 22:54:30 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=A2=9E=E5=8A=A0=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E7=BC=93=E5=AD=98=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=A7=9F=E6=88=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/user/types.ts | 1 + src/store/modules/user.ts | 2 ++ src/views/system/user/profile/thirdParty.vue | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/system/user/types.ts b/src/api/system/user/types.ts index 3488e9f..0787372 100644 --- a/src/api/system/user/types.ts +++ b/src/api/system/user/types.ts @@ -26,6 +26,7 @@ export interface UserQuery extends PageQuery { */ export interface UserVO extends BaseEntity { userId: string | number; + tenantId: string; deptId: number; userName: string; nickName: string; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 4122294..67fd740 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -10,6 +10,7 @@ export const useUserStore = defineStore('user', () => { const name = ref(''); const nickname = ref(''); const userId = ref(''); + const tenantId = ref(''); const avatar = ref(''); const roles = ref>([]); // 用户角色编码集合 → 判断路由权限 const permissions = ref>([]); // 用户权限编码集合 → 判断按钮权限 @@ -49,6 +50,7 @@ export const useUserStore = defineStore('user', () => { nickname.value = user.nickName; avatar.value = profile; userId.value = user.userId; + tenantId.value = user.tenantId; return Promise.resolve(); } return Promise.reject(err); diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue index 40daa86..3d489b4 100644 --- a/src/views/system/user/profile/thirdParty.vue +++ b/src/views/system/user/profile/thirdParty.vue @@ -58,6 +58,7 @@