登录界面输入不存在的租户时,导致后续请求报错的问题

This commit is contained in:
YunaiV 2022-03-19 18:24:51 +08:00
parent 9209e8da1c
commit db06292ea3
1 changed files with 1 additions and 1 deletions

View File

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