王通 hace 2 años
padre
commit
cb2de56a12
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/views/forest.vue

+ 3 - 0
src/views/forest.vue

@@ -1057,6 +1057,9 @@
       getWebSocketEvent(data) {
         let that = this
         const event = data
+        if (typeof data != 'object') {
+          event = JSON.parse(data);
+        }
         //右侧获取事件列表
         that.markersList = []
         let markersMap = {