调整老版本地图报错

This commit is contained in:
joylink_fanyuhong 2020-03-11 19:54:48 +08:00
parent 8ad0544dc2
commit cf456057c3

View File

@ -516,7 +516,7 @@ const map = {
if (map && map.skinVO) { if (map && map.skinVO) {
state.map = map; state.map = map;
let showConfig = {}; let showConfig = {};
if (Vue.prototype.$jlmap) { if (Vue.prototype.$jlmap && ( typeof(Vue.prototype.$jlmap.getShowConfig) === 'function')) {
showConfig = Vue.prototype.$jlmap.getShowConfig(); showConfig = Vue.prototype.$jlmap.getShowConfig();
} }
state.mapDevice = parser(map, map.skinVO.code, showConfig); state.mapDevice = parser(map, map.skinVO.code, showConfig);