fix: 【SYSTEM 系统管理】未开启租户,不使用 url 进行租户识别
parent
896e24dc1d
commit
2e495f1312
|
|
@ -239,6 +239,7 @@ const getLoginFormCache = () => {
|
|||
}
|
||||
// 根据域名,获得租户信息
|
||||
const getTenantByWebsite = async () => {
|
||||
if (loginData.tenantEnable === 'true') {
|
||||
const website = location.host
|
||||
const res = await LoginApi.getTenantByWebsite(website)
|
||||
if (res) {
|
||||
|
|
@ -246,6 +247,7 @@ const getTenantByWebsite = async () => {
|
|||
authUtil.setTenantId(res.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
const loading = ref() // ElLoading.service 返回的实例
|
||||
// 登录
|
||||
const handleLogin = async (params: any) => {
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ const getTenantId = async () => {
|
|||
|
||||
// 根据域名,获得租户信息
|
||||
const getTenantByWebsite = async () => {
|
||||
if (registerData.tenantEnable === 'true') {
|
||||
const website = location.host
|
||||
const res = await LoginApi.getTenantByWebsite(website)
|
||||
if (res) {
|
||||
|
|
@ -240,6 +241,7 @@ const getTenantByWebsite = async () => {
|
|||
authUtil.setTenantId(res.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
const loading = ref() // ElLoading.service 返回的实例
|
||||
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Reference in New Issue