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 })