mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
b2f04b41a1
commit
3f51ac9f43
@ -29,11 +29,15 @@
|
||||
if(_data.lat){
|
||||
_lat = _data.lat;
|
||||
}
|
||||
try{
|
||||
if($that.selectMapPosInfo.addMap){
|
||||
$that.selectMapPosInfo.addMap.destroy();
|
||||
}
|
||||
}catch(e){
|
||||
|
||||
if($that.selectMapPosInfo.addMap){
|
||||
$that.selectMapPosInfo.addMap.destroy();
|
||||
}
|
||||
|
||||
|
||||
let addMap = new TMap.Map(_data.element, {
|
||||
center: new TMap.LatLng(_lat, _lng),
|
||||
zoom: 13
|
||||
|
||||
Loading…
Reference in New Issue
Block a user