人员距离单位换算
parent
eccd014f34
commit
6010f9fbc5
|
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue