From e023474fc9bcc726ed558a0623f1316dddc13152 Mon Sep 17 00:00:00 2001
From: zzw <wander.zheng@qq.com>
Date: 星期五, 01 十二月 2023 15:14:32 +0800
Subject: [PATCH] 编号

---
 web/packages/components/zt-uploader/src/zt-uploader.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/web/packages/components/zt-uploader/src/zt-uploader.vue b/web/packages/components/zt-uploader/src/zt-uploader.vue
index a8f22b3..7f9fa0d 100644
--- a/web/packages/components/zt-uploader/src/zt-uploader.vue
+++ b/web/packages/components/zt-uploader/src/zt-uploader.vue
@@ -335,8 +335,8 @@
         cropData: {},
         isShowCrop: false,
         uploading: false,
-        fileList: this.getUploadList(this.value),
-        uploadList: this.getUploadList(this.value),
+        fileList: this.getUploadList(this.value) || [],
+        uploadList: this.getUploadList(this.value) || [],
         progressFlag: false
       }
     },
@@ -549,7 +549,7 @@
       },
       async handleRemove(index) {
         let file = this.uploadList[index]
-        if (file.status === 1) { // 璇佷功鏂囦欢锛岀洿鎺ヤ粠鍒楄〃鍒犻櫎锛屼笉淇濆瓨鏁版嵁搴�
+        if (file.status === 2) { // 璇佷功鏂囦欢锛岀洿鎺ヤ粠鍒楄〃鍒犻櫎锛屼笉淇濆瓨鏁版嵁搴�
           this.handRemoveAndSetValue(index)
         } else {
           if (await this.$tip.confirm(this.$t('prompt.info', {'handle': this.$t('delete')}))) {

--
Gitblit v1.9.1