Files
ycc-proxy-webview/src/api/user.js
2025-11-27 13:19:45 +08:00

16 lines
388 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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")}`,
},
});
}