|
|
@ -25,7 +25,6 @@ const service = axios.create({
|
|
|
|
service.interceptors.request.use(config => {
|
|
|
|
service.interceptors.request.use(config => {
|
|
|
|
if(localStorage.getItem('USER_POOL_NAME_CURRENT')){
|
|
|
|
if(localStorage.getItem('USER_POOL_NAME_CURRENT')){
|
|
|
|
config.headers['poolName'] = config.header?.PoolName || localStorage.getItem('USER_POOL_NAME_CURRENT');
|
|
|
|
config.headers['poolName'] = config.header?.PoolName || localStorage.getItem('USER_POOL_NAME_CURRENT');
|
|
|
|
console.log(config.headers['poolName'])
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 是否需要设置 token
|
|
|
|
// 是否需要设置 token
|
|
|
|
const isToken = (config.headers || {}).isToken === false
|
|
|
|
const isToken = (config.headers || {}).isToken === false
|
|
|
|