From 3ba1f2423a7ef6d8f7c3282ca5f5293bc0da4b45 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期五, 30 十月 2020 13:58:41 +0800
Subject: [PATCH] 绘制多边形区域命名规则更新,数据栈按文件夹实例化绑定上传组件

---
 src/components/subComponents/FileUpload/btn.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/components/subComponents/FileUpload/btn.vue b/src/components/subComponents/FileUpload/btn.vue
index 7638874..750ad79 100644
--- a/src/components/subComponents/FileUpload/btn.vue
+++ b/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
     }

--
Gitblit v1.8.0