From 57d6e7e5a88ef366cb18b7729fb2a1424ada8164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 21 Aug 2025 10:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ws?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index c35d6d8..dbae2a8 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -442,7 +442,7 @@ const setItemsId = (e) => { } const locationData = ref({}) const processData = (data) => { - console.log('data',data) + console.log('data',data.ty) if (data.ty === 1) { } if (data.ty === 2) { @@ -456,7 +456,7 @@ const processData = (data) => { rotate: data.HeadingAngle // rotate: 0 } - console.log(location) + console.log('location',location) locationData.value = location } @@ -482,7 +482,6 @@ const ad = () => { // 3. 接收消息 socket.addEventListener("message", (event) => { - console.log('JSON.parse(event.data)',JSON.parse(event.data)) processData(JSON.parse(event.data)) });