feat: 配置代码优化

This commit is contained in:
duanshuwen committed 2025-08-12 19:59:21 +08:00
1 parent c7275f504f
commit a42f7b4258
8 files changed
+4379 -77

No files matched your search

+2
View File
@@ -7,7 +7,9 @@ const defaultConfig = {
"Content-Type": "application/json",
},
};
const BASE_URL = import.meta.env.VITE_BASE_URL;
console.log(import.meta.env);
function request(url, args = {}, method = "POST", customConfig = {}) {
// 判断 url 是否以 http 开头