|
@@ -1,10 +1,10 @@
|
|
|
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";
|
|
|
|
|
|
const windowConfig = (window as any).AppGlobalConfig;
|
|
|
-
|
|
|
+const getBaseUrl = () => '/djycserver';
|
|
|
// 创建 axios 实例
|
|
|
const http: AxiosInstance = axios.create({
|
|
|
- baseURL: windowConfig.server,
|
|
|
+ baseURL: getBaseUrl(),
|
|
|
timeout: 30000, // 请求超时时间
|
|
|
});
|
|
|
|