This commit is contained in:
parent
062742c602
commit
f100706a83
@ -128,20 +128,16 @@ const setWorkTime = async () => {
|
|||||||
// 현재 위치 주소 가져오기
|
// 현재 위치 주소 가져오기
|
||||||
const address = await getLocation();
|
const address = await getLocation();
|
||||||
|
|
||||||
console.log(address);
|
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
$api.post('commuters/insert', {
|
$api.post('commuters/insert', {
|
||||||
memberSeq: props.userId,
|
memberSeq: props.userId,
|
||||||
projctSeq: props.checkedInProject.PROJCTSEQ,
|
projctSeq: props.checkedInProject.PROJCTSEQ,
|
||||||
commutLvt: null,
|
commutLvt: null,
|
||||||
commutArr: null,
|
commutArr: address,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
toastStore.onToast('출근 완료.', 's');
|
toastStore.onToast('출근 완료.', 's');
|
||||||
todayCommuterInfo();
|
todayCommuterInfo();
|
||||||
// 부모 컴포넌트에 업데이트 이벤트 발생
|
|
||||||
emit('workTimeUpdated', true);
|
emit('workTimeUpdated', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user