hanbaoshan
2020-11-02 ee3bd8d3f0818475035a68bc04b1a87f083ebbd9
src/components/subComponents/FileUpload/btn.vue
@@ -26,14 +26,18 @@
      default() {
        return {}
      }
    }
    },
  },
  watch: {
    attrs: {
      handler(n, o) {
        this.$nextTick(() => {
          this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
        })
        //this.$nextTick(() => {
          if(n){
            this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, n)
          }
        //})
      },
      deep: true
    }