Browse Source

功能修改20250324-01

zhiyuan-007 1 month ago
parent
commit
6ef832e3cf
2 changed files with 5 additions and 2 deletions
  1. 3 1
      src/components/MapView.vue
  2. 2 1
      src/store/map.js

+ 3 - 1
src/components/MapView.vue

@@ -71,9 +71,11 @@ export default {
 						mapStore.cubeResult = arg.data.message
 						break
 					case 'CurrentCubeLevel':
-						console.log(arg)
 						mapStore.currentCubeLevel = arg.data.level
 						break
+					case 'ClickResult':
+						mapStore.clickResult = arg.data.message
+						break
 				}
 			})
 		})

+ 2 - 1
src/store/map.js

@@ -41,7 +41,8 @@ export const useMapStore = defineStore('map', {
 		realTimeUAVList: [], //实时无人机列表
 		isFollow: false, //是否跟随无人机
 		queryResult: [], //查询结果
-		cubeResult: {}, //查询结果
+		cubeResult: {}, //网格查询结果
+		clickResult: null, //模型点击查询结果
 	}),
 	persist: true,
 	actions: {