diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 56bde7505..9c5aff7e5 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -319,10 +319,18 @@ const map = { return state.map; }, psdList: (state) => { - return state.map.psdList; + if (state.map) { + return state.map.psdList; + } else { + return []; + } }, espList: (state) => { - return state.map.espList; + if (state.map) { + return state.map.espList; + } else { + return []; + } }, lineCode: (state) => { if (state.map && state.map.skinVO) {