update 删除多租户功能

This commit is contained in:
疯狂的狮子Li
2026-03-13 16:11:00 +08:00
parent 0dc58fa3c6
commit e3227f5cc5
25 changed files with 18 additions and 1166 deletions
@@ -17,9 +17,6 @@ const loading = ref(true);
const code = route.query.code as string;
const state = route.query.state as string;
const source = route.query.source as string;
const stateJson = JSON.parse(atob(state));
const tenantId = (stateJson.tenantId as string) ? (stateJson.tenantId as string) : '000000';
const domain = stateJson.domain as string;
const processResponse = async (res: any) => {
if (res.code !== 200) {
@@ -62,19 +59,9 @@ const loginByCode = async (data: LoginData) => {
};
const init = async () => {
// 如果域名不相等 则重定向处理
const host = window.location.host;
if (domain !== host) {
const urlFull = new URL(window.location.href);
urlFull.host = domain;
window.location.href = urlFull.toString();
return;
}
const data: LoginData = {
socialCode: code,
socialState: state,
tenantId: tenantId,
source: source,
clientId: import.meta.env.VITE_APP_CLIENT_ID,
grantType: 'social'