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); } });