This commit is contained in:
PC-202306242200\Administrator
2024-09-12 20:37:18 +08:00
parent caf84f4ff3
commit bc339aec84
8 changed files with 91 additions and 100 deletions

View File

@@ -127,14 +127,11 @@ export const errorConfig: RequestConfig = {
// 拦截请求配置,进行个性化处理。
const Authorization = localStorage.getItem('token') || ''
const headers = { Authorization };
console.log(process.env.API_URL);
let url = `${process.env.API_URL}${config.url}`;
if (config.url.includes('https://')) {
url = config.url;
}
// let url = `${process.env.API_BASEURL ? process.env.API_BASEURL : ''}` + config.url;
// if (config.url.includes('https://')) {
// url = config.url;