update
This commit is contained in:
@@ -3,9 +3,11 @@ import AESCrypto from "./AESCrypto.js";
|
||||
import {Message} from '@arco-design/web-vue';
|
||||
import {useUserStore} from "../pinia/UserStore/index.js";
|
||||
|
||||
export const BASEURL = import.meta.env.MODE === 'development' ? '/baseApi' : import.meta.env.VITE_API_URL;
|
||||
|
||||
// 创建 Axios 实例
|
||||
const request = axios.create({
|
||||
baseURL: import.meta.env.MODE === 'development' ? '/baseApi' : import.meta.env.VITE_API_URL, // 替换为你的基础 URL
|
||||
baseURL: BASEURL, // 替换为你的基础 URL
|
||||
timeout: 10000, // 请求超时设置
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user