From 6918611d0688e84b3189b2f5daa470015f21a85f Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Mon, 15 Dec 2025 10:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system-boot/file.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/system-boot/file.ts b/src/api/system-boot/file.ts index bc13ddac..5be9ad94 100644 --- a/src/api/system-boot/file.ts +++ b/src/api/system-boot/file.ts @@ -1,5 +1,5 @@ import createAxios from '@/utils/request' - +import { ElMessage } from 'element-plus' const SYSTEM_PREFIX = '/system-boot' /** @@ -17,6 +17,11 @@ export const uploadFile = (file: any, path: string) => { 'Content-Type': 'multipart/form-data' }, data: form + }).then(res => { + if (res.code == `A0000`) { + ElMessage.success('上传成功!') + return res + } }) } @@ -50,7 +55,7 @@ export const downloadFile = (filePath: any) => { /** * 获取文件的短期url展示 */ -export const getFileUrl = (params:any) => { +export const getFileUrl = (params: any) => { let form = new FormData() // form.append('filePath', filePath) return createAxios({