mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
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
|
|
});
|
|
};
|