|  | @@ -21,7 +21,6 @@ import { useSystem } from '@/store/system'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const errorData = []
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const tenantEnable = import.meta.env.VITE_APP_TENANT_ENABLE
 | 
	
		
			
				|  |  |  const { result_code, base_url, request_timeout } = config
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  // 需要忽略的提示。忽略后,自动 Promise.reject('error')
 | 
	
	
		
			
				|  | @@ -80,13 +79,10 @@ service.interceptors.request.use(
 | 
	
		
			
				|  |  |        (config).headers.Authorization = 'Bearer ' + getToken(tokenIndex) // 让每个请求携带自定义token
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      // 设置租户
 | 
	
		
			
				|  |  | -    if (tenantEnable && tenantEnable === 'true') {
 | 
	
		
			
				|  |  | -      const tenantId = import.meta.env.VITE_TENANTCODE
 | 
	
		
			
				|  |  | -      if (tenantId) config.headers['tenant-id'] = tenantId
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    const tenantId = import.meta.env.VITE_TENANTCODE
 | 
	
		
			
				|  |  | +    if (tenantId) config.headers['tenant-id'] = tenantId
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      const params = config.params || {}
 | 
	
		
			
				|  |  |      const data = config.data || false
 | 
	
		
			
				|  |  |      if (
 |