1
This commit is contained in:
@@ -127,9 +127,12 @@ export const errorConfig: RequestConfig = {
|
||||
// 拦截请求配置,进行个性化处理。
|
||||
const Authorization = localStorage.getItem('token') || ''
|
||||
const headers = { Authorization };
|
||||
const url = 'https://iadminapi.zhongshuai2023.com';
|
||||
console.log(url);
|
||||
|
||||
config.url.includes('https://');
|
||||
let url = `https://iadminapi.zhongshuai2023.com`;
|
||||
if (config.url.includes('https://')) {
|
||||
url = config.url;
|
||||
}
|
||||
|
||||
return { ...config, url, headers };
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user