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.06358997.js"></script>
|
<script src="/umi.fc9d3ec3.js"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
176
dist/umi.06358997.js → dist/umi.fc9d3ec3.js
vendored
176
dist/umi.06358997.js → dist/umi.fc9d3ec3.js
vendored
File diff suppressed because one or more lines are too long
@@ -3,6 +3,8 @@ import type { RequestConfig } from '@umijs/max';
|
|||||||
import { message, notification } from 'antd';
|
import { message, notification } from 'antd';
|
||||||
import { history, useModel } from '@umijs/max';
|
import { history, useModel } from '@umijs/max';
|
||||||
import { stringify } from 'querystring';
|
import { stringify } from 'querystring';
|
||||||
|
import proxy from '../config/proxy';
|
||||||
|
const { REACT_APP_ENV = 'dev' } = process.env;
|
||||||
// 错误处理方案: 错误类型
|
// 错误处理方案: 错误类型
|
||||||
enum ErrorShowType {
|
enum ErrorShowType {
|
||||||
SILENT = 0,
|
SILENT = 0,
|
||||||
@@ -125,7 +127,7 @@ export const errorConfig: RequestConfig = {
|
|||||||
// 拦截请求配置,进行个性化处理。
|
// 拦截请求配置,进行个性化处理。
|
||||||
const Authorization = localStorage.getItem('token') || ''
|
const Authorization = localStorage.getItem('token') || ''
|
||||||
const headers = { Authorization };
|
const headers = { Authorization };
|
||||||
const url = config?.url;
|
const url = 'https://iadminapi.zhongshuai2023.com';
|
||||||
|
|
||||||
return { ...config, url, headers };
|
return { ...config, url, headers };
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user