오류
All checks were successful
LocalNet_front/pipeline/head This commit looks good

This commit is contained in:
yoon 2025-03-25 18:03:48 +09:00
parent 041a69a173
commit 8328020eb3

View File

@ -540,7 +540,7 @@ const handleUpdate = async () => {
//
const convertAddressToCoordinates = () => {
if (typeof window.kakao === 'undefined' || typeof window.kakao.maps === 'undefined') {
if (!window.kakao || !window.kakao.maps) {
return;
}
@ -596,8 +596,6 @@ onMounted(async () => {
await userStore.userInfo();
user.value = userStore.user;
convertAddressToCoordinates();
if (startDateInput.value) {
// FormInput input
startInputElement = startDateInput.value.$el.querySelector('input[type="date"]');
@ -607,13 +605,9 @@ onMounted(async () => {
endInputElement = endDateInput.value.$el.querySelector('input[type="date"]');
}
// Kakao Maps API
const checkKakaoMapsLoaded = () => {
if (window.kakao && window.kakao.maps && window.kakao.maps.services) {
isKakaoMapLoaded.value = true;
convertAddressToCoordinates();
} else {
setTimeout(checkKakaoMapsLoaded, 500);
}
};