feat: 更换域名

This commit is contained in:
2025-09-08 22:33:41 +08:00
parent 89e396fe78
commit 59aad79779
7 changed files with 14 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
// import { BASE_URL } from "../../constant/base";
import { BASE_URL } from "../../constant/base";
import { goLogin } from "@/hooks/useGoLogin";
const defaultConfig = {
@@ -8,9 +8,6 @@ const defaultConfig = {
},
};
const BASE_URL = import.meta.env.VITE_BASE_URL;
console.log(import.meta.env);
function request(url, args = {}, method = "POST", customConfig = {}) {
// 判断 url 是否以 http 开头
if (!/^http/.test(url)) {