mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
登录界面输入不存在的租户时,导致后续请求报错的问题
This commit is contained in:
parent
9209e8da1c
commit
db06292ea3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user