src/components/helpers/BasemapHelper.js
@@ -18,9 +18,9 @@ * @param defBasemapName 初始化完成后,默认显示的图层 */ initBasemap = (mapConfig, isIntranet) => { if(isIntranet) { this._getToken(mapConfig); // 获取token,并按配置加载地图 }else { if(isIntranet) { // 内网 this._getToken(mapConfig); // 获取token后,并按配置加载地图 }else { // 外网 this._createBasemapByConfig(mapConfig) }