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