From 1acb2169d78d74e347bdfc2e962a88e6cb585bb7 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期五, 30 十月 2020 14:22:34 +0800
Subject: [PATCH] 修复数据栈文件删除列表仍有遗留的bug

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