fix: vxe size

This commit is contained in:
xingyu4j
2022-11-10 13:15:55 +08:00
parent 55405afe94
commit 7922e90135
3 changed files with 18 additions and 11 deletions

View File

@ -46,7 +46,7 @@ service.interceptors.request.use(
;(config as Recordable).headers.Authorization = 'Bearer ' + getAccessToken() // 让每个请求携带自定义token
}
// 设置租户
if (tenantEnable) {
if (tenantEnable && tenantEnable === 'true') {
const tenantId = getTenantId()
if (tenantId) service.defaults.headers.common['tenant-id'] = tenantId
}