This commit is contained in:
xuyue committed 2025-03-04 23:59:49 +08:00
1 parent 175e4c0d68
commit e6b7fe3848
6 files changed
+48 -12

No files matched your search

+2 -5
View File
@@ -1,13 +1,10 @@
import axios from "axios"
import { router } from "./router"
import type { TutorialIn } from "./utils/type"
import { STORAGE_KEY } from "./utils/const"
import { BASE_URL, STORAGE_KEY } from "./utils/const"
const http = axios.create({
baseURL:
import.meta.env.MODE === "development"
? "http://localhost:8000/api"
: "https://web.xuyue.cc/api",
baseURL: BASE_URL,
xsrfCookieName: "xsrfCookieName",
xsrfHeaderName: "X-CSRFTOKEN",
withCredentials: true,