zhangzengfei
2020-10-27 773134bc5889cbfa8e570f012220a451ce2e6622
src/components/subComponents/FileUpload/btn.vue
@@ -28,8 +28,19 @@
      }
    }
  },
  watch: {
    attrs: {
      handler(n, o) {
        this.$nextTick(() => {
          this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
        })
      },
      deep: true
    }
  },
  mounted() {
    this.$nextTick(() => {
      console.log('attrs', this.attrs)
      this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs)
    })
  }