From fb3488f1bb82913ad4406fe269505e7bb4f566f6 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Sat, 31 Aug 2024 14:32:49 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=87=E5=A4=9A=E6=B4=A5=E3=81=AE=E6=96=B9?= =?UTF-8?q?=E5=90=91=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ActionSheetComponents/StationDeteilView.js | 1 - components/駅名表/Sign.js | 17 +++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/ActionSheetComponents/StationDeteilView.js b/components/ActionSheetComponents/StationDeteilView.js index 74defe1..b28b4c1 100644 --- a/components/ActionSheetComponents/StationDeteilView.js +++ b/components/ActionSheetComponents/StationDeteilView.js @@ -130,7 +130,6 @@ export const StationDeteilView = (props) => { info: currentStation[0].JrHpUrl.replace("/index.html", "/") + "/kounai_map.html", - goTo, useShow, }); diff --git a/components/駅名表/Sign.js b/components/駅名表/Sign.js index 5421cfd..507df2b 100644 --- a/components/駅名表/Sign.js +++ b/components/駅名表/Sign.js @@ -64,7 +64,7 @@ export default function Sign(props) { useEffect(() => { setNexPrePosition(0); getPreNextStation(currentStation[0]); - if(currentStation.length == 1)return ()=>{}; + if (currentStation.length == 1) return () => {}; getPreNextStation(currentStation[1]); }, [currentStation]); @@ -96,8 +96,13 @@ export default function Sign(props) { ]; } }); - if(returnData[0])setPreStation(returnData[0]); - if(returnData[1])setNexStation(returnData[1]); + if (now.Station_JP == "宇多津" && now.StationNumber == null) { + if (returnData[1]) setPreStation(returnData[1]); + if (returnData[0]) setNexStation(returnData[0]); + } else { + if (returnData[0]) setPreStation(returnData[0]); + if (returnData[1]) setNexStation(returnData[1]); + } }; const isMatsuyama = currentStation[0].StationNumber == "Y55"; //const isMatsuyama = true; @@ -106,11 +111,7 @@ export default function Sign(props) { const otherData = favoriteStation.filter((d) => { const compare = JSON.stringify(d); const current = JSON.stringify(currentStation); - if (compare !== current) { - return true; - } else { - return false; - } + return compare !== current; }); AS.setItem("favoriteStation", JSON.stringify(otherData)); setFavoriteStation(otherData);