This commit is contained in:
parent
041a69a173
commit
8328020eb3
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user