From 08b0e8cb95b4c83434240a87f087519e35206d87 Mon Sep 17 00:00:00 2001 From: ylj20011123 Date: Mon, 18 Aug 2025 10:55:06 +0800 Subject: [PATCH] update --- src/page/index/components/PageMap/PageMap.vue | 1 + src/page/index/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/page/index/components/PageMap/PageMap.vue b/src/page/index/components/PageMap/PageMap.vue index 3696551..f5b480d 100644 --- a/src/page/index/components/PageMap/PageMap.vue +++ b/src/page/index/components/PageMap/PageMap.vue @@ -5,6 +5,7 @@ import { GaodeMap, LineLayer, PointLayer, Scene } from '@antv/l7'; import { handleGetServerpartList, handleGetServerPartListJava } from '../../service'; // @ts-ignore import yunNanData from '../../../../options/anhuiLine.js' +// @ts-ignore import YNHighWayLine from '../../../../options/YNHighWayLine.js' // 地图实例 diff --git a/src/page/index/index.vue b/src/page/index/index.vue index a89532a..57bc76d 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -485,9 +485,9 @@ const handleGetHighWayData = async () => { const paths = data.route?.paths?.[0]?.steps || []; const coords: number[][] = []; - paths.forEach(step => { + paths.forEach((step: any) => { if (step.polyline) { - const points = step.polyline.split(";").map(p => { + const points = step.polyline.split(";").map((p: any) => { const [lng, lat] = p.split(",").map(Number); return [lng, lat]; });