src/components/subComponents/FileUpload/btn.vue
@@ -26,10 +26,25 @@ default() { return {} } }, }, 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) this.uploader.uploader.assignBrowse(this.$refs.btn, this.directory, this.single, this.attrs) }) }