From 2c7f82b6b7aecfb25df9cdd76f5fd7ab4722e58a Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期五, 27 三月 2026 13:48:27 +0800
Subject: [PATCH] fix: 移除车辆位置监听并修复多个页面显示问题
---
src/utils/websocket.ts | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/utils/websocket.ts b/src/utils/websocket.ts
index f2cd68a..db2c988 100644
--- a/src/utils/websocket.ts
+++ b/src/utils/websocket.ts
@@ -325,13 +325,6 @@
this.notifyListeners('order_status', { status, ...mapped, data, content });
}
}
- if (data?.type === 'VEHICLE_LOCATION') {
- const longitude = content?.lon;
- const latitude = content?.lat;
- if (typeof longitude === 'number' && typeof latitude === 'number') {
- this.notifyListeners('vehicle_location', { longitude, latitude, data, content });
- }
- }
if (data?.type === 'ORDER_ROUTE') {
const routeType = content?.routeType;
const direction = Number(content?.direction);
--
Gitblit v1.7.1