hanbaoshan
2020-10-30 3ba1f2423a7ef6d8f7c3282ca5f5293bc0da4b45
src/components/subComponents/FileUpload/btn.vue
@@ -26,22 +26,25 @@
      default() {
        return {}
      }
    }
    },
  },
  watch:{
    attrs:{
      handler(n,o){
        debugger
        this.$nextTick(()=>{
          this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
        })
  watch: {
    attrs: {
      handler(n, o) {
        //this.$nextTick(() => {
          if(n){
            this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
          }
        //})
      },
      deep: true
    }
  },
  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)
    })
  }