From 4697ef0f2a8e7f301446d3bafc9fadf1b56358d3 Mon Sep 17 00:00:00 2001 From: wx-jincw Date: Wed, 9 Apr 2025 09:45:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E8=BD=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bs-ui/src/components/MyImageViewer/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bs-ui/src/components/MyImageViewer/index.vue b/bs-ui/src/components/MyImageViewer/index.vue index fd7c0b4..5e222cc 100644 --- a/bs-ui/src/components/MyImageViewer/index.vue +++ b/bs-ui/src/components/MyImageViewer/index.vue @@ -69,7 +69,7 @@ export default { const { index } = params; const item = this.files[index]; this.loading = true; - fileDownload(item.attachId).then((res) => { + fileDownload(item.id).then((res) => { const suffix = item.attachFileUrl.substring(item.attachFileUrl.lastIndexOf(".")).toLowerCase(); downloadFile(res, item.oldName + suffix); this.loading = false; @@ -124,10 +124,10 @@ export default { const { index } = params; const item = this.files[index]; this.loading = true; - deleteFile(item.attachId).then(res => { + deleteFile(item.id).then(res => { this.loading = false; const newList = this.files.filter(val => { - return item.attachId !== val.attachId; + return item.id !== val.id; }); this.$emit('change', newList); if (this.initialIndex > 0) {