feat: 整体pure,核心功能对接完成
This commit is contained in:
12
Yi.Pure.Vue3/src/api/file.ts
Normal file
12
Yi.Pure.Vue3/src/api/file.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { http } from "@/utils/http";
|
||||
import type { ResultFile } from "@/api/result";
|
||||
|
||||
/** 上传文件*/
|
||||
export const uploadFile = (data?: object) => {
|
||||
return http.request<ResultFile>("post", "/file", {
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
|
||||
},
|
||||
data
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user