From f100706a8327bd8bce39b0c9b4da50bf9fd69324 Mon Sep 17 00:00:00 2001 From: yoon Date: Thu, 13 Mar 2025 12:28:44 +0900 Subject: [PATCH] =?UTF-8?q?=ED=98=84=EC=9E=AC=EC=9C=84=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/commuters/CommuterBtn.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/commuters/CommuterBtn.vue b/src/components/commuters/CommuterBtn.vue index fa6a9ec..f4738f5 100644 --- a/src/components/commuters/CommuterBtn.vue +++ b/src/components/commuters/CommuterBtn.vue @@ -128,20 +128,16 @@ const setWorkTime = async () => { // 현재 위치 주소 가져오기 const address = await getLocation(); - console.log(address); - - return; - $api.post('commuters/insert', { memberSeq: props.userId, projctSeq: props.checkedInProject.PROJCTSEQ, commutLvt: null, - commutArr: null, + commutArr: address, }).then(res => { if (res.status === 200) { toastStore.onToast('출근 완료.', 's'); todayCommuterInfo(); - // 부모 컴포넌트에 업데이트 이벤트 발생 + emit('workTimeUpdated', true); } });