From 2072a41ca943e6211f7c4171cc47f5efe633af25 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 3 Apr 2025 12:17:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=EC=B0=BD=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=83=88=EB=A1=9C=EA=B3=A0=EC=B9=A8=EC=8B=9C=20?= =?UTF-8?q?=EB=82=A0=EC=94=A8=20401=EC=97=90=EB=9F=AC=EB=82=98=EB=8A=94?= =?UTF-8?q?=EA=B1=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/TheTop.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layouts/TheTop.vue b/src/layouts/TheTop.vue index 42ebb3f..e4b7cf6 100644 --- a/src/layouts/TheTop.vue +++ b/src/layouts/TheTop.vue @@ -368,11 +368,15 @@ const weatherKorean = computed(() => weather.value.description || '날씨 정보 없음'); onMounted(() => { + + if (!userStore.user) return; + navigator.geolocation.getCurrentPosition(async (position) => { const lat = position.coords.latitude; const lon = position.coords.longitude; try { + await userStore.userInfo(); const res = await axios.get(`/weather`, { params: { lat, lon }, withCredentials: true,