zhangzengfei
2020-10-27 e65c4102f0175d666746936381c3dee278358a72
src/components/subComponents/FileUpload/btn.vue
@@ -28,11 +28,10 @@
      }
    }
  },
  watch:{
    attrs:{
      handler(n,o){
        debugger
        this.$nextTick(()=>{
  watch: {
    attrs: {
      handler(n, o) {
        this.$nextTick(() => {
          this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
        })
      },
@@ -41,7 +40,7 @@
  },
  mounted() {
    this.$nextTick(() => {
      console.log('attrs',this.attrs)
      console.log('attrs', this.attrs)
      this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs)
    })
  }