mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
修复用户直接点击登录界面的三方登录,报“租户的请求未传递,请进行排查”的错误
This commit is contained in:
parent
c9f6494bb4
commit
1dfb37b11f
@ -187,6 +187,14 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
// 租户开关
|
// 租户开关
|
||||||
this.tenantEnable = getTenantEnable();
|
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();
|
this.captchaEnable = getCaptchaEnable();
|
||||||
// 重定向地址
|
// 重定向地址
|
||||||
|
Loading…
Reference in New Issue
Block a user