Initial project commit

This commit is contained in:
2026-05-09 16:40:29 +08:00
commit 02b0259a9e
267 changed files with 54891 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { post } from "@/utils/request";
import request from "@/utils/request";
export const register = (data) => post("/auth/register", data);
export const login = (data) =>
request({
url: "/auth/login",
method: "POST",
header: { "Content-Type": "application/x-www-form-urlencoded" },
data: `username=${encodeURIComponent(data.account)}&password=${encodeURIComponent(data.password)}`,
});
export const refreshToken = (data) => post("/auth/refresh", data);