Browse Source

feat(records): change id

gemercheung 1 year ago
parent
commit
d29d418f18
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/app/map/App.vue

+ 3 - 3
src/app/map/App.vue

@@ -73,8 +73,8 @@ const loadMap = async () => {
       const coord = latlng.split(',')
 
 
-      console.log('coord', coord, item.id)
-      const url = getFuseCodeLink(item.id, true)
+      console.log('coord', coord, item.caseId)
+      const url = getFuseCodeLink(item.caseId, true)
       console.log('url', url)
       const icon = new AMap.Icon({
         image: "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",
@@ -87,7 +87,7 @@ const loadMap = async () => {
         position: coord.reverse(),
         title: item.title,
         label: item.title,
-        extData: { url: url, id: item.id }
+        extData: { url: url, id: item.caseId }
         // offset: new AMap.Pixel(-26, -54),
       });