feat: 配置代码优化
This commit is contained in:
@@ -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 开头
|
||||
|
||||
Reference in New Issue
Block a user