From 5cb95b07ed10bdcd663ced3e26fb8ac02e4a0262 Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Wed, 20 Mar 2024 17:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mapBaidu/mapLine.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/mapBaidu/mapLine.vue b/src/components/mapBaidu/mapLine.vue index dd1c6fe..8563b0b 100644 --- a/src/components/mapBaidu/mapLine.vue +++ b/src/components/mapBaidu/mapLine.vue @@ -33,13 +33,13 @@ const initMap = () => { setTimeout(() => { // initCustomDot() const startIcon = { - imgUrl: '/src/assets/img/mapStart.png', + imgUrl: new URL('/src/assets/img/mapStart.png', import.meta.url).href, position: [linePointList[0].lng, linePointList[0].lat], size: [60, 60] } const endIcon = { - imgUrl: '/src/assets/img/mapEnd.png', + imgUrl: new URL('/src/assets/img/mapEnd.png', import.meta.url).href, position: [linePointList[linePointList.length - 1].lng, linePointList[linePointList.length - 1].lat], size: [60, 60]