From 46520ac118742954c5092784bf9b732bad62ab96 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 19 Mar 2020 10:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 814136e7b..e3e8a4a83 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -667,7 +667,7 @@ const map = { routeDataList.forEach(data => { state.routeData[data.code] = data; }); - state.map.automaticRouteButtonList.forEach(item => { + state.map.automaticRouteButtonList && state.map.automaticRouteButtonList.forEach(item => { state.routeData[item.automaticRouteCode].automaticRouteCode = item.code; }); state.routeList = routeDataList;