diff --git a/super-screen/client/src/sections/water-prevention/containers/homePage.js b/super-screen/client/src/sections/water-prevention/containers/homePage.js index 132b023..cf08488 100644 --- a/super-screen/client/src/sections/water-prevention/containers/homePage.js +++ b/super-screen/client/src/sections/water-prevention/containers/homePage.js @@ -86,7 +86,7 @@ function homePage(props) { if (item.alert && item.futureData && item.futureData.length != 0) { item.futureData.map((futureItem) => { if (futureItem.value >= alert) { - futureState = `超警戒,预计${item.forecast_time}时水位抵达${(item.value).toFixed(2)}m` + futureState = `超警戒,预计${item.forecast_time}时水位抵达${(item.value)?.toFixed(2)}m` } }) futureState = futureState != '' ? futureState : '正常'