【issues/7488】手机号码登录,在请求头中无法获取租户id

pull/7524/head
JEECG 2024-11-27 09:46:34 +08:00
parent eb1612f8dd
commit a79004b924
1 changed files with 4 additions and 1 deletions

View File

@ -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/7488id---
const { token , userInfo } = data;
this.setTenant(userInfo!.loginTenantId);
//update-end---author:wangshuai---date:2024-11-25---for:issues/7488id---
// save token
this.setToken(token);
return this.afterLoginAction(goHome, data);