diff --git a/web/src/views/PcHome/component/MapView.vue b/web/src/views/PcHome/component/MapView.vue index 1d67a28..17aad3e 100644 --- a/web/src/views/PcHome/component/MapView.vue +++ b/web/src/views/PcHome/component/MapView.vue @@ -10,6 +10,7 @@ import { LTileLayer, LTooltip, } from "@vue-leaflet/vue-leaflet"; +import { AddCircle20Filled, SubtractCircle20Filled } from "@vicons/fluent"; import ApiService from "@/service/api.js"; import IconBase from "@/assets/map/base.webp"; import IconPlayer from "@/assets/map/player.webp"; @@ -92,6 +93,18 @@ const onMapMouseMove = (event) => { ]; }; +// 左下角控件 +const onAddZoom = () => { + if (zoom.value !== 6) { + zoom.value += 1; + } +}; +const onSubtractZoom = () => { + if (zoom.value !== 0) { + zoom.value -= 1; + } +}; + onMounted(async () => { let res = await api.getPlayerList({}); playerList.value = res.data.value; @@ -187,6 +200,39 @@ onUnmounted(async () => { +
+
+ + + + + + + +
+
{{ $t("map.showFastTravel") }}