1
This commit is contained in:
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.d2fbf189.js"></script>
|
||||
<script src="/umi.8f395768.js"></script>
|
||||
|
||||
</body></html>
|
||||
60
dist/umi.d2fbf189.js → dist/umi.8f395768.js
vendored
60
dist/umi.d2fbf189.js → dist/umi.8f395768.js
vendored
File diff suppressed because one or more lines are too long
@@ -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