浏览代码

事件定位列表清空

付宇航 1 年之前
父节点
当前提交
a7c02194ca
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/components/eventLocation.vue

+ 9 - 0
src/components/eventLocation.vue

@@ -276,6 +276,15 @@ export default {
       cameraMarkersList: []
     }
   },
+  create()
+  {
+    this.cameraList=[]
+    this.eventList=[]
+  },
+  beforeDestroy() {
+    this.cameraList=[]
+    this.eventList=[]
+  },
   created() {
     /** ----------------------------------摄像头预览开始------------------------------------- */
     const DHWsInstance = DHWs.getInstance()