diff --git a/components/Map/MapSelector.js b/components/Map/MapSelector.js index 2e21536..3dcd4d7 100644 --- a/components/Map/MapSelector.js +++ b/components/Map/MapSelector.js @@ -36,7 +36,7 @@ const MapSelector = (props) => { // 初始化地图 const initMap = async () => { if (!window.BMapGL) { - await dynamicLoadJs("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr"); + await dynamicLoadJs("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize"); } setLoading(true);