This commit is contained in:
parent
062742c602
commit
f100706a83
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user