@@ -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();