From cf456057c3b1da37b640ae012e8bde58d1a5ff61 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 11 Mar 2020 19:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=80=81=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 26253cb3f..83955aa87 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -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);