Commit bdbeb1d8 authored by 崔佳豪's avatar 崔佳豪

fix: 环境未配置地图图层方案造成的错误问题

parent a4a765a9
Pipeline #47044 skipped with stages
...@@ -411,7 +411,7 @@ class Login { ...@@ -411,7 +411,7 @@ class Login {
const { layers = [] } = this.globalConfig.mapsettings || {}; const { layers = [] } = this.globalConfig.mapsettings || {};
if (layers.length === 0) { if (layers.length === 0) {
widgetIndex !== -1 && this.globalConfig.uiwidgets.splice(widgetIndex, 1); widgetIndex !== -1 && this.globalConfig.uiwidgets.splice(widgetIndex, 1);
return Promise.resolve({}); return Promise.resolve(this.globalConfig.mapsettings);
} }
const layer = layers[0]; const layer = layers[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment