This commit is contained in:
2025-09-27 17:41:14 +08:00
commit ff5cb63960
301 changed files with 61730 additions and 0 deletions

15
src/api/user.js Normal file
View File

@@ -0,0 +1,15 @@
import axios from "axios";
// 获取API基础URL
const baseURL = import.meta.env.VITE_API_BASE_URL || "";
// 注销账号API
export function cancelAccount() {
return axios({
method: "post",
url: `${baseURL}/api/user/cancel`,
headers: {
Authorization: `Bearer ${localStorage.getItem("token")}`,
},
});
}