From a79004b924b8cd236da9ada66b80d1d00dee9350 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Wed, 27 Nov 2024 09:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/7488=E3=80=91=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7=E7=A0=81=E7=99=BB=E5=BD=95=EF=BC=8C=E5=9C=A8=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B4=E4=B8=AD=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=A7=9F=E6=88=B7id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/src/store/modules/user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/store/modules/user.ts b/jeecgboot-vue3/src/store/modules/user.ts index 0c159656d..08044c8b7 100644 --- a/jeecgboot-vue3/src/store/modules/user.ts +++ b/jeecgboot-vue3/src/store/modules/user.ts @@ -249,7 +249,10 @@ export const useUserStore = defineStore({ try { const { goHome = true, mode, ...loginParams } = params; const data = await phoneLoginApi(loginParams, mode); - const { token } = data; + //update-begin---author:wangshuai---date:2024-11-25---for:【issues/7488】手机号码登录,在请求头中无法获取租户id--- + const { token , userInfo } = data; + this.setTenant(userInfo!.loginTenantId); + //update-end---author:wangshuai---date:2024-11-25---for:【issues/7488】手机号码登录,在请求头中无法获取租户id--- // save token this.setToken(token); return this.afterLoginAction(goHome, data);