重构单位导入路径,优化代码结构

This commit is contained in:
JIANG
2026-03-07 17:31:14 +08:00
parent ddb02cc688
commit b4ab3e287b
11 changed files with 39 additions and 26 deletions
@@ -24,7 +24,7 @@ import dayjs, { Dayjs } from "dayjs";
import "dayjs/locale/zh-cn";
import { api } from "@/lib/api";
import { NETWORK_NAME, config } from "@config/config";
import { FLOW_DISPLAY_UNIT, toM3s } from "../DMALeakDetection/utils";
import { FLOW_DISPLAY_UNIT, toM3s } from "@utils/units";
import { BurstLocationResult } from "./types";
interface Props {
@@ -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 "../DMALeakDetection/utils";
import { FLOW_DISPLAY_UNIT } from "@utils/units";
interface Props {
result: BurstLocationResult | null;
@@ -28,7 +28,7 @@ import {
BurstLocationSchemeDetail,
BurstSchemeRecord,
} from "./types";
import { FLOW_DISPLAY_UNIT } from "../DMALeakDetection/utils";
import { FLOW_DISPLAY_UNIT } from "@utils/units";
interface Props {
onViewResult: (result: BurstLocationResult) => void;