update 优化 三方登录不同域名获取不到租户id问题

This commit is contained in:
疯狂的狮子Li
2024-06-18 18:44:17 +08:00
parent 3c713c9258
commit 72610ab194
2 changed files with 8 additions and 12 deletions

View File

@ -186,14 +186,6 @@ const initTenantList = async () => {
}
};
//检测租户选择框的变化
watch(
() => loginForm.value.tenantId,
() => {
localStorage.setItem('tenantId', String(loginForm.value.tenantId));
}
);
/**
* 第三方登录
* @param type
@ -202,7 +194,7 @@ const doSocialLogin = (type: string) => {
authBinding(type).then((res: any) => {
if (res.code === HttpStatus.SUCCESS) {
// 获取授权地址跳转
window.location.href = res.data;
window.location.href = res.data + '&tenantId=' + loginForm.value.tenantId;
} else {
ElMessage.error(res.msg);
}