mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7488】手机号码登录,在请求头中无法获取租户id
parent
eb1612f8dd
commit
a79004b924
|
@ -249,7 +249,10 @@ export const useUserStore = defineStore({
|
||||||
try {
|
try {
|
||||||
const { goHome = true, mode, ...loginParams } = params;
|
const { goHome = true, mode, ...loginParams } = params;
|
||||||
const data = await phoneLoginApi(loginParams, mode);
|
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
|
// save token
|
||||||
this.setToken(token);
|
this.setToken(token);
|
||||||
return this.afterLoginAction(goHome, data);
|
return this.afterLoginAction(goHome, data);
|
||||||
|
|
Loading…
Reference in New Issue