code refactor

This commit is contained in:
MaysWind
2023-05-15 22:36:21 +08:00
parent ab26ef64a5
commit a55256ad82
+2 -1
View File
@@ -81,8 +81,9 @@ export default {
this.zoomControl.addTo(this.leaflet);
this.attribution = this.$map.leaflet.control.attribution({
prefix: '&copy; <a href="http://www.openstreetmap.org/copyright" class="external" target="_blank">OpenStreetMap</a>'
prefix: false
});
this.attribution.addAttribution('&copy; <a href="http://www.openstreetmap.org/copyright" class="external" target="_blank">OpenStreetMap</a>');
this.attribution.addTo(this.leaflet);
isFirstInit = true;