|
|
@@ -233,11 +233,13 @@ const getTenantId = async () => {
|
|
|
|
|
|
// 根据域名,获得租户信息
|
|
|
const getTenantByWebsite = async () => {
|
|
|
- const website = location.host
|
|
|
- const res = await LoginApi.getTenantByWebsite(website)
|
|
|
- if (res) {
|
|
|
- registerData.registerForm.tenantName = res.name
|
|
|
- authUtil.setTenantId(res.id)
|
|
|
+ if (registerData.tenantEnable === 'true') {
|
|
|
+ const website = location.host
|
|
|
+ const res = await LoginApi.getTenantByWebsite(website)
|
|
|
+ if (res) {
|
|
|
+ registerData.registerForm.tenantName = res.name
|
|
|
+ authUtil.setTenantId(res.id)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
const loading = ref() // ElLoading.service 返回的实例
|