修复用户直接点击登录界面的三方登录,报“租户的请求未传递,请进行排查”的错误

This commit is contained in:
YunaiV 2022-11-12 11:12:38 +08:00
parent c9f6494bb4
commit 1dfb37b11f

View File

@ -187,6 +187,14 @@ export default {
created() {
//
this.tenantEnable = getTenantEnable();
if (this.tenantEnable) {
getTenantIdByName(this.loginForm.tenantName).then(res => { //
const tenantId = res.data;
if (tenantId && tenantId >= 0) {
setTenantId(tenantId)
}
});
}
//
this.captchaEnable = getCaptchaEnable();
//