调整老版本地图报错

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

View File

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