tcm-training-admin/src/requestErrorConfig.ts
@@ -4,13 +4,15 @@ import { history } from '@umijs/max'; import { decryptData } from '@/utils/utils'; const runtimeBaseUrl = typeof BASE_URL === 'undefined' ? '' : BASE_URL; /** * @name 错误处理 * pro 自带的错误处理, 可以在这里做自己的改动 * @doc https://umijs.org/docs/max/request#配置 */ export const errorConfig: RequestConfig = { baseURL: BASE_URL, baseURL: runtimeBaseUrl, // 请求拦截器 requestInterceptors: [