1.优化
This commit is contained in:
2025-07-09 17:33:51 +08:00
parent cd1b085499
commit cf129e6d23
18 changed files with 48 additions and 60 deletions
+1 -3
View File
@@ -155,7 +155,7 @@ export const Map = {
if (lng) {
lon = lng;
}
if (!longitude || !latitude || !type) {
if (!lon || !lat || !type) {
continue;
}
// 创建一个 Icon
@@ -394,7 +394,6 @@ export const Map = {
});
this.driveLine.on('error', function (result) {
let str = '定位失败:';
console.log('error', result);
switch (result.info) {
case 'PERMISSION_DENIED':
str += '浏览器阻止了定位操作';
@@ -409,7 +408,6 @@ export const Map = {
str += '未知错误';
break;
}
console.log(str);
return false;
});
},