diff --git a/jeecgboot-vue3/src/store/modules/user.ts b/jeecgboot-vue3/src/store/modules/user.ts index 0c159656..08044c8b 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);