update 优化 三方登录不同域名问题 采用新方案

This commit is contained in:
疯狂的狮子Li
2024-06-19 14:29:44 +08:00
parent fe1942c247
commit c206ab5b4a
4 changed files with 14 additions and 8 deletions

View File

@ -84,9 +84,9 @@ const unlockAuth = (row: any) => {
};
const authUrl = (source: string) => {
authBinding(source).then((res: any) => {
authBinding(source, useUserStore().tenantId).then((res: any) => {
if (res.code === 200) {
window.location.href = res.data + '&tenantId=' + useUserStore().tenantId + '&domain=' + window.location.host;
window.location.href = res.data;
} else {
proxy?.$modal.msgError(res.msg);
}