mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	登录界面输入不存在的租户时,导致后续请求报错的问题
This commit is contained in:
		| @@ -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(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV