Skip to content

Commit 44e8ae3

Browse files
committed
修复用户直接点击登录界面的三方登录,报“租户的请求未传递,请进行排查”的错误
1 parent b8b786e commit 44e8ae3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/views/login.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ export default {
187187
created() {
188188
// 租户开关
189189
this.tenantEnable = getTenantEnable();
190+
if (this.tenantEnable) {
191+
getTenantIdByName(this.loginForm.tenantName).then(res => { // 设置租户
192+
const tenantId = res.data;
193+
if (tenantId && tenantId >= 0) {
194+
setTenantId(tenantId)
195+
}
196+
});
197+
}
190198
// 验证码开关
191199
this.captchaEnable = getCaptchaEnable();
192200
// 重定向地址

0 commit comments

Comments
 (0)