路径规划修改

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