From 7f25bd34d5b4792483ac6387408734323c834b38 Mon Sep 17 00:00:00 2001 From: JIANG Date: Sat, 7 Mar 2026 19:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E8=8E=B7=E5=8F=96=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BD=AC=E6=8D=A2=E6=BC=8F=E6=8D=9F=E9=87=8F?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E4=B8=BA=20m=C2=B3/h=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/olmap/BurstLocation/LocationResults.tsx | 4 ++-- src/components/olmap/BurstLocation/SchemeQuery.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/olmap/BurstLocation/LocationResults.tsx b/src/components/olmap/BurstLocation/LocationResults.tsx index 4c2f747..f344e86 100644 --- a/src/components/olmap/BurstLocation/LocationResults.tsx +++ b/src/components/olmap/BurstLocation/LocationResults.tsx @@ -29,7 +29,7 @@ import VectorSource from "ol/source/Vector"; import { Stroke, Style, Circle, Fill } from "ol/style"; import { bbox, featureCollection } from "@turf/turf"; import { BurstCandidate, BurstLocationResult } from "./types"; -import { FLOW_DISPLAY_UNIT } from "@utils/units"; +import { FLOW_DISPLAY_UNIT, toM3h } from "@utils/units"; interface Props { result: BurstLocationResult | null; @@ -272,7 +272,7 @@ const LocationResults: React.FC = ({ result }) => { /> void; @@ -302,7 +302,7 @@ const SchemeQuery: React.FC = ({ onViewResult }) => { 漏损量: - {typeof leakage === "number" ? `${leakage} ${FLOW_DISPLAY_UNIT}` : "-"} + {typeof leakage === "number" ? `${toM3h(leakage, "m³/s")} ${FLOW_DISPLAY_UNIT}` : "-"}