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

This commit is contained in:
YunaiV 2022-03-19 18:24:51 +08:00
parent 9209e8da1c
commit db06292ea3

View File

@ -87,7 +87,7 @@ export default {
// debugger // debugger
getTenantIdByName(value).then(res => { getTenantIdByName(value).then(res => {
const tenantId = res.data; const tenantId = res.data;
if (tenantId >= 0) { if (tenantId && tenantId >= 0) {
// //
Cookies.set("tenantId", tenantId); Cookies.set("tenantId", tenantId);
callback(); callback();