From 13df992ca85dddd617949626d7af71f06f10d5ce Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Fri, 22 Mar 2024 11:37:27 +0800 Subject: [PATCH] =?UTF-8?q?(fix)=E6=B0=B4=E4=BD=8D=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E9=A2=84=E6=B5=8B=E5=9B=BE=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/sections/water-prevention/containers/homePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 : '正常'