From 5dbcea275e1d6e60d374edbd41cc66836043f8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=8C?= <259278618@qq.com> Date: Thu, 30 Jul 2026 13:23:06 +0800 Subject: [PATCH] 1 --- .gitignore | 1 + amap/service/poi_service.go | 4 ++-- web/src/App.vue | 1 + web/src/components/PoiMap.vue | 1 - 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8b646c4..4dab7d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.idea/* +*.db web/node_modules/ web/dist/ \ No newline at end of file diff --git a/amap/service/poi_service.go b/amap/service/poi_service.go index fe8b9fb..f1dc7aa 100644 --- a/amap/service/poi_service.go +++ b/amap/service/poi_service.go @@ -50,7 +50,7 @@ type amapPoi struct { Name string `json:"name"` Type string `json:"type"` Typecode string `json:"typecode"` - Address string `json:"address"` + Address amapString `json:"address"` Tel amapString `json:"tel"` Location string `json:"location"` BusinessArea amapString `json:"business_area"` @@ -175,7 +175,7 @@ func (s *poiService) toPoiItem(p *amapPoi) *dto.PoiItem { return &dto.PoiItem{ PoiId: p.Id, Name: p.Name, - Address: p.Address, + Address: string(p.Address), Phone: string(p.Tel), Category: p.Type, City: string(p.City), diff --git a/web/src/App.vue b/web/src/App.vue index 9405718..0306fc5 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -371,6 +371,7 @@ function provinceChanged() { html, body, #app { width: 100%; height: 100%; + overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #333; } diff --git a/web/src/components/PoiMap.vue b/web/src/components/PoiMap.vue index 95ca0f5..c8de7d6 100644 --- a/web/src/components/PoiMap.vue +++ b/web/src/components/PoiMap.vue @@ -88,7 +88,6 @@ function addMarkers(pois) { }) currentMarkers.push(marker) - bounds.extend([lat, lng]) }) }