Commit bde85317 by 张杰

增加查看位置点兼容代码

1 parent 462437ff
...@@ -83,14 +83,23 @@ export default { ...@@ -83,14 +83,23 @@ export default {
window.AMap = AMap; window.AMap = AMap;
this.mapObj = mapService.init("map"); this.mapObj = mapService.init("map");
this.isInitMap = true; this.isInitMap = true;
let o = history.state;
let query = this.$route.query; let query = this.$route.query;
let o = history.state;
// 假性离线报警查看位置点 // 假性离线报警查看位置点
if (query.sns) { if (query.sns) {
this.getLocation(query.sns); this.getLocation(query.sns);
return false; return false;
} }
// 兼容其他页面的跳转
if(query && query.sn){
query.elat = query.lat
query.elng = query.lng
this.addLocation(query,true);
return false;
}
console.log(o); console.log(o);
if (o.lng || o.bsLng) { if (o.lng || o.bsLng) {
o.elat = o.lat; o.elat = o.lat;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!