|
@@ -80,16 +80,10 @@ service.interceptors.request.use(
|
|
|
config.headers['Authorization'] = getToken()
|
|
|
// config.headers['content-type'] = "application/x-www-form-urlencoded"
|
|
|
}
|
|
|
- // const tenantId = sessionStorage.getItem('tenantId') || null
|
|
|
- // const configData = {
|
|
|
- // ...config.data,
|
|
|
- // tenantId
|
|
|
- // }
|
|
|
- // const configParams = {
|
|
|
- // ...config.params,
|
|
|
- // tenantId
|
|
|
- // }
|
|
|
- // config.data = cleanDeep(config.data)
|
|
|
+ const tenantId = sessionStorage.getItem('tenantId') || null
|
|
|
+ if(tenantId) {
|
|
|
+ config.headers['tenantId'] = tenantId
|
|
|
+ }
|
|
|
config.params = cleanDeep(config.params)
|
|
|
// params: cleanDeep(options.params),
|
|
|
// (config)
|