|
|
@ -495,12 +495,10 @@ |
|
|
|
/** 地图创建完成(动画关闭) */ |
|
|
|
/** 地图创建完成(动画关闭) */ |
|
|
|
function complete () { |
|
|
|
function complete () { |
|
|
|
if (map) { |
|
|
|
if (map) { |
|
|
|
map.on('complete', () => { |
|
|
|
setMapDataJson(mapProps.options); |
|
|
|
setMapDataJson(mapProps.options); |
|
|
|
handleSetCourierUserList(); |
|
|
|
handleSetCourierUserList(); |
|
|
|
mapState.loading = false; |
|
|
|
mapState.loading = false; |
|
|
|
mapState.first = true; |
|
|
|
mapState.first = true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -512,7 +510,7 @@ |
|
|
|
if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; |
|
|
|
if (!mapProps.toolbarControl) mapState.toggleOperatePanelClass.toolbarHeight = 0; |
|
|
|
}); |
|
|
|
}); |
|
|
|
watch(toRefs(mapProps).options, (newValue) => { |
|
|
|
watch(toRefs(mapProps).options, (newValue) => { |
|
|
|
if (mapState.first) { |
|
|
|
if (mapState.first && newValue) { |
|
|
|
setMapDataJson(newValue); |
|
|
|
setMapDataJson(newValue); |
|
|
|
handleSetCourierUserList(); |
|
|
|
handleSetCourierUserList(); |
|
|
|
} |
|
|
|
} |
|
|
|