fix:处理map的重复加载问题
This commit is contained in:
@@ -947,6 +947,10 @@
|
||||
this.$get('sysConfig',param).then(response=>{
|
||||
if(response.code == 200){
|
||||
let mapConfig=JSON.parse(response.data.paramKey.map_center_config);
|
||||
if(this.map){
|
||||
this.map.remove();
|
||||
this.map=null;
|
||||
}
|
||||
let map = L.map("map",{
|
||||
minZoom:mapConfig.minZoom,
|
||||
maxZoom:mapConfig.maxZoom,
|
||||
|
||||
Reference in New Issue
Block a user