소스 검색

事件定位列表清空

付宇航 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()