This commit is contained in:
2025-04-24 19:17:53 +08:00
parent 094b560059
commit f9381e74ed
9 changed files with 323 additions and 50 deletions

View File

@@ -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, // 请求超时设置
});