Browse Source

✨ feat: 更新打卡点图片存放位置

Pchen. 9 months ago
parent
commit
6073283c3d

+ 4 - 4
src/components/Map/MapContainer.vue

@@ -57,13 +57,13 @@ onMounted(() => {
         const beginMarker = new AMap.Marker({
         const beginMarker = new AMap.Marker({
           position: props.pathData[0],
           position: props.pathData[0],
           offset: new AMap.Pixel(-24, -48),
           offset: new AMap.Pixel(-24, -48),
-          icon: "/mark/begin.png",
+          icon: "./mark/begin.png",
           title: "起始点"
           title: "起始点"
         })
         })
         const endMarker = new AMap.Marker({
         const endMarker = new AMap.Marker({
           position: props.pathData[props.pathData.length - 1],
           position: props.pathData[props.pathData.length - 1],
           offset: new AMap.Pixel(-24, -48),
           offset: new AMap.Pixel(-24, -48),
-          icon: "/mark/end.png",
+          icon: "./mark/end.png",
           title: "终点"
           title: "终点"
         })
         })
         map.add([beginMarker, endMarker])
         map.add([beginMarker, endMarker])
@@ -75,7 +75,7 @@ onMounted(() => {
           const marker = new AMap.Marker({
           const marker = new AMap.Marker({
             position: [point.longtitude, point.latitude],
             position: [point.longtitude, point.latitude],
             offset: new AMap.Pixel(-15, -28),
             offset: new AMap.Pixel(-15, -28),
-            icon: "/mark/daka.png",
+            icon: "./mark/daka.png",
             title: `打卡点${index + 1}`
             title: `打卡点${index + 1}`
           })
           })
           map.add(marker)
           map.add(marker)
@@ -89,7 +89,7 @@ onMounted(() => {
           const marker = new AMap.Marker({
           const marker = new AMap.Marker({
             position: markerLocation,
             position: markerLocation,
             offset: new AMap.Pixel(-15, -28),
             offset: new AMap.Pixel(-15, -28),
-            icon: "/mark/log.png",
+            icon: "./mark/log.png",
             title: point.address
             title: point.address
           })
           })
 
 

+ 0 - 0
public/mark/begin.png → src/components/Map/mark/begin.png


+ 0 - 0
public/mark/daka.png → src/components/Map/mark/daka.png


+ 0 - 0
public/mark/end.png → src/components/Map/mark/end.png


+ 0 - 0
public/mark/log.png → src/components/Map/mark/log.png