1
This commit is contained in:
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script src="/umi.d2fbf189.js"></script>
|
<script src="/umi.8f395768.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</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,8 +127,11 @@ export const errorConfig: RequestConfig = {
|
|||||||
// 拦截请求配置,进行个性化处理。
|
// 拦截请求配置,进行个性化处理。
|
||||||
const Authorization = localStorage.getItem('token') || ''
|
const Authorization = localStorage.getItem('token') || ''
|
||||||
const headers = { Authorization };
|
const headers = { Authorization };
|
||||||
const url = 'https://iadminapi.zhongshuai2023.com';
|
config.url.includes('https://');
|
||||||
console.log(url);
|
let url = `https://iadminapi.zhongshuai2023.com`;
|
||||||
|
if (config.url.includes('https://')) {
|
||||||
|
url = config.url;
|
||||||
|
}
|
||||||
|
|
||||||
return { ...config, url, headers };
|
return { ...config, url, headers };
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user