diff --git a/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts b/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts index 83b1c97..7f43d1c 100644 --- a/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts +++ b/web/src/views/HandDevice/Home/components/composables/useMapEvents.ts @@ -190,12 +190,12 @@ export const useMapEvents = () => { case 'fence': case 'fence-label': // popupContent = popupGenerator.handleFence(feature) - return false break default: popupContent = popupGenerator.handleMarker(feature) break } + if (!popupContent) return false // if (!popupContent) return popupElement.innerHTML = popupContent popupOverlay.setPosition(event.coordinate) diff --git a/web/src/views/HandDevice/Home/components/services/popup.service.ts b/web/src/views/HandDevice/Home/components/services/popup.service.ts index 8577311..248c271 100644 --- a/web/src/views/HandDevice/Home/components/services/popup.service.ts +++ b/web/src/views/HandDevice/Home/components/services/popup.service.ts @@ -90,6 +90,7 @@ export class PopupService { return this.handleSingleMarkerPopup(markerData as MarkerData) } - return this.handleDefaultPopup() + // return this.handleDefaultPopup() + return '' } } diff --git a/web/src/views/gas/handdetector/index.vue b/web/src/views/gas/handdetector/index.vue index aa47b6a..6701795 100644 --- a/web/src/views/gas/handdetector/index.vue +++ b/web/src/views/gas/handdetector/index.vue @@ -6,7 +6,7 @@ :model="queryParams" ref="queryFormRef" :inline="true" - label-width="120px" + label-width="80px" > +