From d5ce0b7e6d9ff8db84c03af0bef143024dd246ca Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期二, 03 十一月 2020 17:24:35 +0800 Subject: [PATCH] 调整应用中心定时器 --- src/components/subComponents/FileUpload/btn.vue | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/subComponents/FileUpload/btn.vue b/src/components/subComponents/FileUpload/btn.vue index 45248b8..750ad79 100644 --- a/src/components/subComponents/FileUpload/btn.vue +++ b/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) }) } -- Gitblit v1.8.0