From efb3b5e84ed4493f82f30ed3c3dcdff0fd5a8083 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 16 Jan 2026 10:55:55 +0800
Subject: [PATCH] feat:任务工单后台地图

---
 applications/task-work-order/src/utils/cesium/common.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/applications/task-work-order/src/utils/cesium/common.js b/applications/task-work-order/src/utils/cesium/common.js
index 0e1aefc..5c8ce3e 100644
--- a/applications/task-work-order/src/utils/cesium/common.js
+++ b/applications/task-work-order/src/utils/cesium/common.js
@@ -131,22 +131,22 @@
 	let newLat = lat
 
 	switch (direction) {
-		case 'W': // 向前(heading 方向)
+		case 'KeyW': // 向前(heading 方向)
 			newLon += moveStep * Math.sin(headingRad)
 			newLat += moveStep * Math.cos(headingRad)
 			break
 
-		case 'S': // 向后(反方向)
+		case 'KeyS': // 向后(反方向)
 			newLon -= moveStep * Math.sin(headingRad)
 			newLat -= moveStep * Math.cos(headingRad)
 			break
 
-		case 'D': // 向右(heading + 90°)
+		case 'KeyD': // 向右(heading + 90°)
 			newLon += moveStep * Math.cos(headingRad)
 			newLat -= moveStep * Math.sin(headingRad)
 			break
 
-		case 'A': // 向左(heading - 90°)
+		case 'KeyA': // 向左(heading - 90°)
 			newLon -= moveStep * Math.cos(headingRad)
 			newLat += moveStep * Math.sin(headingRad)
 			break

--
Gitblit v1.9.3