From e4105375f0803454dbdd9e635973294839686e4f Mon Sep 17 00:00:00 2001 From: bjang03 Date: Mon, 13 May 2024 09:20:11 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A2=9E=E5=8A=A0upload.ts=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/upload.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/api/upload.ts 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