diff --git a/yudao-ui-admin/src/views/login.vue b/yudao-ui-admin/src/views/login.vue index 1031d9dc3..5c892ce0e 100644 --- a/yudao-ui-admin/src/views/login.vue +++ b/yudao-ui-admin/src/views/login.vue @@ -87,7 +87,7 @@ export default { // debugger getTenantIdByName(value).then(res => { const tenantId = res.data; - if (tenantId >= 0) { + if (tenantId && tenantId >= 0) { // 设置租户 Cookies.set("tenantId", tenantId); callback();