mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
fix: axios error
This commit is contained in:
parent
8118de4891
commit
d22620a7ce
@ -48,7 +48,7 @@ service.interceptors.request.use(
|
|||||||
// 设置租户
|
// 设置租户
|
||||||
if (tenantEnable && tenantEnable === 'true') {
|
if (tenantEnable && tenantEnable === 'true') {
|
||||||
const tenantId = getTenantId()
|
const tenantId = getTenantId()
|
||||||
if (tenantId) service.defaults.headers.common['tenant-id'] = tenantId
|
if (tenantId) (config as Recordable).headers.common['tenant-id'] = tenantId
|
||||||
}
|
}
|
||||||
const params = config.params || {}
|
const params = config.params || {}
|
||||||
const data = config.data || false
|
const data = config.data || false
|
||||||
|
Loading…
Reference in New Issue
Block a user