feat:新增pure-admin前端

This commit is contained in:
chenchun
2024-08-23 14:31:00 +08:00
parent 556d32729a
commit 4bc2cebd60
579 changed files with 85268 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { http } from "@/utils/http";
type Result = {
success: boolean;
data: Array<any>;
};
/** 地图数据 */
export const mapJson = (params?: object) => {
return http.request<Result>("get", "/get-map-info", { params });
};
/** 文件上传 */
export const formUpload = data => {
return http.request<Result>(
"post",
"https://run.mocky.io/v3/3aa761d7-b0b3-4a03-96b3-6168d4f7467b",
{ data },
{
headers: {
"Content-Type": "multipart/form-data"
}
}
);
};