diff --git a/src/views/map/index.vue b/src/views/map/index.vue index d2b4712..f18f7f2 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -2999,7 +2999,7 @@ export default { _this.fwebsocket = new WebSocket(encodeURI(wsUrl)) _this.fwebsocket.onmessage = function(message) { console.info('接收消息') - const peopleList = JSON.parse(message.data).data.data + const peopleList = JSON.parse(message.data) console.log(peopleList) for (let i = 0; i < peopleList.length; i++) { const item = peopleList[i]