路径规划修改

This commit is contained in:
2025-11-18 16:10:47 +08:00
parent ac98cad989
commit 877d3fd772

View File

@ -9,7 +9,7 @@
:closeCallback="closeCallBack" :closeCallback="closeCallBack"
> >
<template #content> <template #content>
<div class="row" style="align-items: flex-start"> <!-- <div class="row" style="align-items: flex-start">
<div class="col start-col"> <div class="col start-col">
<button <button
class="crossPoint" class="crossPoint"
@ -37,7 +37,7 @@
>避让点 >避让点
</button> </button>
</div> </div>
</div> </div> -->
<div class="row"> <div class="row">
<p class="lable-left-line">路径规划</p> <p class="lable-left-line">路径规划</p>
</div> </div>
@ -195,6 +195,8 @@ const open = () => {
// routePlanning.createRoute(response.list[0].positions) // routePlanning.createRoute(response.list[0].positions)
// } // }
// }) // })
console.log('rsrsrsrrsrs')
try {
let res = await RouteApi.queryRoute({ let res = await RouteApi.queryRoute({
startLng: startLng.value, startLng: startLng.value,
startLat: startLat.value, startLat: startLat.value,
@ -205,6 +207,9 @@ const open = () => {
if (res.code === 200) { if (res.code === 200) {
routePlanning.createRoute(res.data.pathPoints) routePlanning.createRoute(res.data.pathPoints)
} }
} catch (error) {
document.getElementById('clearRoute').click()
}
} }
}, 100) }, 100)
} }