update 增加菜单权限校验

This commit is contained in:
zk
2024-05-28 14:37:29 +08:00
parent 0eb5fad72f
commit 83f768a4a0
3 changed files with 30 additions and 23 deletions
-12
View File
@@ -234,18 +234,6 @@
return Promise.all(hospitalPromises);
}
// function getHospitalList(hospitalList, userLocation) {
// hospitalList.forEach(async (item) => {
// item.distance = getDistance(userLocation, [item.lon, item.lat]);
// let { time, routeList } = await getDriveTime(userLocation, [item.lon, item.lat]);
// item.driveTime = time;
// item.routeList = routeList;
// item.userLocation = userLocation;
// console.log('time', item.driveTime);
// });
// return hospitalList;
// }
function getDistance(userLocation, destination) {
const value = Map.getDistance(userLocation, destination);
return value > 1000 ? (value / 1000).toFixed(2) + 'km' : value + 'm';