From a55256ad82f9c8f47b2c1389c65f078f069f7c1e Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 15 May 2023 22:36:21 +0800 Subject: [PATCH] code refactor --- src/components/mobile/MapSheet.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/mobile/MapSheet.vue b/src/components/mobile/MapSheet.vue index f788518e..3bff4858 100644 --- a/src/components/mobile/MapSheet.vue +++ b/src/components/mobile/MapSheet.vue @@ -81,8 +81,9 @@ export default { this.zoomControl.addTo(this.leaflet); this.attribution = this.$map.leaflet.control.attribution({ - prefix: '© OpenStreetMap' + prefix: false }); + this.attribution.addAttribution('© OpenStreetMap'); this.attribution.addTo(this.leaflet); isFirstInit = true;