mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
fix: 【SYSTEM 系统管理】未开启租户,不使用 url 进行租户识别
This commit is contained in:
parent
896e24dc1d
commit
2e495f1312
@ -239,11 +239,13 @@ const getLoginFormCache = () => {
|
|||||||
}
|
}
|
||||||
// 根据域名,获得租户信息
|
// 根据域名,获得租户信息
|
||||||
const getTenantByWebsite = async () => {
|
const getTenantByWebsite = async () => {
|
||||||
const website = location.host
|
if (loginData.tenantEnable === 'true') {
|
||||||
const res = await LoginApi.getTenantByWebsite(website)
|
const website = location.host
|
||||||
if (res) {
|
const res = await LoginApi.getTenantByWebsite(website)
|
||||||
loginData.loginForm.tenantName = res.name
|
if (res) {
|
||||||
authUtil.setTenantId(res.id)
|
loginData.loginForm.tenantName = res.name
|
||||||
|
authUtil.setTenantId(res.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const loading = ref() // ElLoading.service 返回的实例
|
const loading = ref() // ElLoading.service 返回的实例
|
||||||
|
@ -233,11 +233,13 @@ const getTenantId = async () => {
|
|||||||
|
|
||||||
// 根据域名,获得租户信息
|
// 根据域名,获得租户信息
|
||||||
const getTenantByWebsite = async () => {
|
const getTenantByWebsite = async () => {
|
||||||
const website = location.host
|
if (registerData.tenantEnable === 'true') {
|
||||||
const res = await LoginApi.getTenantByWebsite(website)
|
const website = location.host
|
||||||
if (res) {
|
const res = await LoginApi.getTenantByWebsite(website)
|
||||||
registerData.registerForm.tenantName = res.name
|
if (res) {
|
||||||
authUtil.setTenantId(res.id)
|
registerData.registerForm.tenantName = res.name
|
||||||
|
authUtil.setTenantId(res.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const loading = ref() // ElLoading.service 返回的实例
|
const loading = ref() // ElLoading.service 返回的实例
|
||||||
|
Loading…
x
Reference in New Issue
Block a user