This commit is contained in:
PC-202306242200\Administrator
2024-09-10 17:58:57 +08:00
parent 2f62a25857
commit 6a2ee3a9e8
3 changed files with 37 additions and 34 deletions

2
dist/index.html vendored
View File

@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.d2fbf189.js"></script>
<script src="/umi.8f395768.js"></script>
</body></html>

File diff suppressed because one or more lines are too long

View File

@@ -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 };
},
],