This commit is contained in:
2025-11-27 13:19:45 +08:00
commit c85b46c18e
612 changed files with 83497 additions and 0 deletions

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

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