人员距离单位换算

yishuixian
zzq 2024-11-07 16:35:37 +08:00
parent eccd014f34
commit 6010f9fbc5
2 changed files with 1 additions and 1 deletions

BIN
dist.rar

Binary file not shown.

View File

@ -511,7 +511,7 @@ export default {
responses.forEach((res,idx)=>{
if (res.data.route && res.data.route.paths && res.data.route.paths[0]) {
let obj = res.data.route.paths[0]
data[hasLngLatItems[idx]].distance = (obj.distance / 1000).toFixed(2)
data[hasLngLatItems[idx]].distance = (obj.distance / 2000).toFixed(2)
data[hasLngLatItems[idx]].duration = Math.round(obj.duration / 60) || 1
}
})