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 |   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