diff --git a/src/api/upload.ts b/src/api/upload.ts new file mode 100644 index 0000000..b56ba91 --- /dev/null +++ b/src/api/upload.ts @@ -0,0 +1,11 @@ +import upload from '@/api/uploadHttp' +// import request from '@/utils/request' +// 上传 +export function uploadFile(data) { + return upload({ + url: '/infra/file/upload', + method: 'post', + filePath:data.filePath, + name: data.name + }) +} \ No newline at end of file