From 8171fac4d00c3dcbb33d82043ef4a5923694aec4 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 24 十一月 2026 14:43:47 +0800
Subject: [PATCH] yxh

---
 src/views/project/donationdetails/index.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/project/donationdetails/index.vue b/src/views/project/donationdetails/index.vue
index 50b2afe..f51a3fc 100644
--- a/src/views/project/donationdetails/index.vue
+++ b/src/views/project/donationdetails/index.vue
@@ -4322,9 +4322,19 @@
     },
     //鏂囦欢涓婁紶
     handleUploadError() {},
+    /** 2026-11-23锛氭寜鏂囦欢鍚嶄粠鍒楄〃涓簿纭垹闄や竴椤癸紝閬垮厤鐢ㄩ瑙堝垪琛�(blob)鏁磋〃瑕嗙洊闄勪欢瀛楁 */
+    spliceByName(list, name) {
+      if (!list || !name) {
+        return;
+      }
+      const idx = list.findIndex(item => item && item.name === name);
+      if (idx > -1) {
+        list.splice(idx, 1);
+      }
+    },
     remove(file, fileList) {
-      this.fileListto.splice(this.fileListto.indexOf(file), 1);
-      this.annexfilesList = this.fileListto;
+      this.spliceByName(this.fileListto, file && file.name);
+      this.spliceByName(this.annexfilesList, file && file.name);
     },
     // 涓婁紶鎴愬姛
     uploadSccess(response, file, fileList) {

--
Gitblit v1.9.3