jinlin
2024-01-23 52a302b11c08cbc564ff3931038ae57a305a95d6
web/packages/components/zt-uploader/src/zt-uploader.vue
@@ -313,8 +313,7 @@
    inject: {
      elForm: {
        default: ''
      }
    },
      }},
    data() {
      return {
        isUpload: false,
@@ -376,7 +375,7 @@
              src: this.value.url,
              title: this.value.name
            })
          }
         }
        }
        return urls
      },
@@ -400,6 +399,7 @@
    watch: {
      // eslint-disable-next-line no-unused-vars
      value(val, oldval) {
        console.log(val,'zt-upload value(val')
        if (this.uploadList !== val) {
          this.uploadList = this.getUploadList(val)
          this.fileList = this.getUploadList(val)
@@ -950,6 +950,15 @@
      if (this.crop && this.$refs.cropper) {
        document.body.appendChild(this.$refs.cropper.$el)
      }
      if (this.value) {
        console.log(this.value,'zt-upload value(val')
        this.uploadList = this.getUploadList(this.value)
        this.fileList = this.getUploadList(this.value)
        if (this.fileList.length>0){
          console.log(this.fileList[0].status, 'val.files[0].status23')
          // alert('2222'+this.fileList[0].status)
        }
      }
    }
  }
</script>