fix: axios error

pull/2/head
xingyu4j 2022-11-10 14:36:45 +08:00
parent 8118de4891
commit d22620a7ce
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ service.interceptors.request.use(
// 设置租户
if (tenantEnable && tenantEnable === 'true') {
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 data = config.data || false