From a93448b92d88451a0dc78282c04c1c7325376fa2 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Wed, 9 Jul 2025 10:18:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(file):=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8A=A8=E6=80=81=E5=AD=98=E5=82=A8=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=92=8C=E7=95=8C=E9=9D=A2=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除MinIO存储选项,简化存储类型配置 - 优化上传功能,支持动态选择存储类型 - 统一服务类型显示,移除MinIO相关的UI元素 - 改进上传接口调用,传递用户选择的存储类型 - 提升用户体验和系统一致性 --- src/views/system/file/index.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/system/file/index.vue b/src/views/system/file/index.vue index 3406ed9..5944f91 100644 --- a/src/views/system/file/index.vue +++ b/src/views/system/file/index.vue @@ -216,7 +216,6 @@ placeholder="请选择文件服务" :options="[ { label: 'LOCAL', value: 'LOCAL' }, - { label: 'MINIO', value: 'MINIO' }, { label: 'OSS', value: 'OSS' }, ]" /> @@ -481,7 +480,6 @@ const columns: DataTableColumns = [ render: (row) => { const serviceMap: Record = { 1: { type: 'success', text: '本地存储' }, - 2: { type: 'info', text: 'MinIO' }, 3: { type: 'warning', text: '阿里云OSS' }, } const config = serviceMap[row.fileService] || { type: 'info', text: '未知' } @@ -780,8 +778,8 @@ async function customUpload({ file, onProgress, onFinish, onError }: any) { // 设置进度 onProgress({ percent: 10 }) - // 调用上传API - await uploadFile(fileObj, folderName, 2, '-1') + // 调用上传API,传递选择的存储类型 + await uploadFile(fileObj, folderName, 2, '-1', uploadForm.value.fileService) // 设置完成进度 onProgress({ percent: 100 })