diff --git a/src/views/system/picture/index.vue b/src/views/system/picture/index.vue index 2f6fbce..47bde07 100644 --- a/src/views/system/picture/index.vue +++ b/src/views/system/picture/index.vue @@ -343,7 +343,6 @@ placeholder="请选择服务类型" :options="[ { label: 'LOCAL', value: 'LOCAL' }, - { label: 'MINIO', value: 'MINIO' }, { label: 'OSS', value: 'OSS' }, ]" /> @@ -591,7 +590,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.pictureService] || { type: 'info', text: '未知' } @@ -807,7 +805,6 @@ function handleImageError(e: Event) { function getPictureServiceText(serviceType: string): string { const serviceMap: Record = { 1: '本地存储', - 2: 'MinIO存储', 3: '阿里云OSS', } return serviceMap[serviceType] || '未知' @@ -895,9 +892,9 @@ async function customUpload({ file, onProgress, onFinish, onError }: any) { // 设置进度 onProgress({ percent: 10 }) - // 调用上传API - 使用选择的分类 - // console.log('调用上传API:', { pictureType: uploadForm.value.pictureType, fileSize: 2 }) - await uploadPicture(fileObj, uploadForm.value.pictureType, 2) + // 调用上传API - 使用选择的分类和存储类型 + // console.log('调用上传API:', { pictureType: uploadForm.value.pictureType, pictureService: uploadForm.value.pictureService, fileSize: 2 }) + await uploadPicture(fileObj, uploadForm.value.pictureType, 2, uploadForm.value.pictureService) // 设置完成进度 onProgress({ percent: 100 })