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}` : "-"}