From d0d9c0b769cbeec6f791b35ed1b7e8a0a28d6063 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 1 Mar 2023 01:14:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A9=94=EC=9D=B8=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=A7=80=EB=8F=84=20=ED=81=B4=EB=A6=AD(wip)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/ts/PageFront.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hwe/ts/PageFront.vue b/hwe/ts/PageFront.vue index 020e1109..e96b7711 100644 --- a/hwe/ts/PageFront.vue +++ b/hwe/ts/PageFront.vue @@ -65,6 +65,9 @@ :imagePath="imagePath" :formatCityInfo="formatCityInfoText" :mapData="map" + :disallowClick="false" + :genHref="genMapCityHref" + @city-click="onCityClick" />
예턴
@@ -378,6 +381,21 @@ const cityPosition = getCityPosition(); const formatCityInfoText = formatCityInfo; const imagePath = window.pathConfig.gameImage; +function genMapCityHref(cityID: number){ + return `b_currentCity.php?citylist=${cityID}`; +} + +function onCityClick(city: MapCityParsed, $event: MouseEvent | TouchEvent): void { + if (city.id === 0) { + return; + } + if ($event.ctrlKey) { + window.open(genMapCityHref(city.id), "_blank"); + return; + } + window.location.href = genMapCityHref(city.id); +} + watch(refreshCounter, async () => { try { map.value = await SammoAPI.Global.GetMap({