From 18272927dafaad378cc7c2f1ff837d6f169f077d Mon Sep 17 00:00:00 2001 From: LUCAS Date: Fri, 29 Jul 2022 11:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A1=A3=E6=A1=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=97=AE=E9=A2=98=EF=BC=8C=E6=81=A2=E5=A4=8D=E8=A6=86?= =?UTF-8?q?=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/fillion/components/fileTable.js | 2 +- web/client/src/sections/fillion/nav-item.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/client/src/sections/fillion/components/fileTable.js b/web/client/src/sections/fillion/components/fileTable.js index 77fc8cce..a58840f3 100644 --- a/web/client/src/sections/fillion/components/fileTable.js +++ b/web/client/src/sections/fillion/components/fileTable.js @@ -218,7 +218,7 @@ const RoadNameList = (props) => { ]; useEffect(() => { - if (roads && roads instanceof Array) { + if (roads && roads instanceof Array && roads.length) { setSelectRoad(roads[0].rId) onChange(roads[0]); } diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index e7e0cf62..bc72281e 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -32,6 +32,9 @@ export function getNavItem(user, dispatch) { 公交管理 + + 档案管理 + {/* 视频管理 */}