This commit is contained in:
fan 2021-05-20 15:18:02 +08:00
parent 5ee943a313
commit 32ef41b405

View File

@ -117,9 +117,21 @@ export default {
if (this.mapData.skinVO) { if (this.mapData.skinVO) {
const config = this.map.getShowConfig(); const config = this.map.getShowConfig();
Object.assign(config, con); Object.assign(config, con);
this.mapDevice = parser(this.mapData, this.mapData.skinVO.code, config); // this.mapDevice = parser(this.mapData, this.mapData.skinVO.code, config);
this.mapDevice = this.$store.state.map.mapDevice;
} }
this.setMap(this.mapData, this.mapDevice); this.setMap(this.mapData, this.mapDevice);
const nameList = Object.keys(this.$store.state.map.map || {});
let list = [];
nameList.forEach(item => {
if (item !== 'skinVO') {
const data = this.$store.state.map.map[item];
if (data && data.constructor === Array) {
list = [...list, ...data];
}
}
});
this.$jlmap.updateShowMode(list, con.showMode); //
} catch (error) { } catch (error) {
console.log('[ERROR] ', error); console.log('[ERROR] ', error);
} }