chenyao
2025-02-18 2b54773e29da45bf60d770d7e17109802bd79c07
测试提交是否自动发布
2 files modified
4 ■■■■ changed files
src/api/manage.ts 2 ●●● patch | view | raw | blame | history
src/views/DronePilotList.vue 2 ●●● patch | view | raw | blame | history
src/api/manage.ts
@@ -119,7 +119,7 @@
}
// 获取两点之间的高度和距离
export const getTwoPointInfo = async function (workspace_id: String,personLat:Number,personLng:Number,pointLat:Number,pointLng:Number): Promise<IWorkspaceResponse<any>> {
export const getTwoPointInfo = async function (workspace_id: string,personLat:number,personLng:number,pointLat:number,pointLng:number): Promise<IWorkspaceResponse<any>> {
  const url = `${HTTP_PREFIX_H5}/getPointInfo/${workspace_id}/?personLat=${personLat}&personLng=${personLng}&pointLat=${pointLat}&pointLng=${pointLng}`
  const result = await request.get(url)
  return result.data
src/views/DronePilotList.vue
@@ -21,7 +21,7 @@
      </template>
    </div>
    <div class="drone-pilot-btns">
      <div class="drone-pilot" @click="dronePilotClick(false, 'drone')" :class="{ active:!droneOrPilot }">机场</div>
      <div class="drone-pilot" @click="dronePilotClick(false, 'drone')" :class="{ active:!droneOrPilot }">机场11</div>
      <div class="drone-pilot" @click="dronePilotClick(true, 'pilot')" :class="{ active:droneOrPilot }">遥控器</div>
    </div>
  </div>