From a75952451bb376a4c5624e62c744930f91f4401b Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期二, 03 十一月 2020 18:15:07 +0800 Subject: [PATCH] 添加多页面ico配置 --- 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