Browse Source

数据大盘:半浮层改造(0.8)

洪海涛 4 years ago
parent
commit
cfac02801b
1 changed files with 4 additions and 9 deletions
  1. 4 9
      src/views/dataBigManage/components/drawerModal/index.vue

+ 4 - 9
src/views/dataBigManage/components/drawerModal/index.vue

@@ -189,21 +189,16 @@ export default {
       }
     }
   },
-
   watch: {
-    drawerData() {
-      this.init()
+    drawerData(v, o) {
+      if (JSON.stringify(v) !== JSON.stringify(o)) {
+        this.init()
+      }
     },
     openDrawer(value) {
       this.drawer = value
-      // if (value) {
-      //   this.init()
-      // }
     }
   },
-  created() {
-    this.drawer = false
-  },
   mounted() {
     this.drawer = false
   },