Explorar o código

事件定位列表清空

付宇航 hai 1 ano
pai
achega
a7c02194ca
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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()