feat: 접경 귀환 기능 추가

This commit is contained in:
2023-08-05 08:57:15 +00:00
parent 57b12e8c04
commit 905669755f
5 changed files with 214 additions and 0 deletions
+20
View File
@@ -170,6 +170,26 @@ $(function ($) {
location.reload();
});
$('#instantRetreat').on('click', async function (e) {
e.preventDefault();
if(!confirm('아군 접경으로 이동할까요?')){
return false;
}
try {
await SammoAPI.General.InstantRetreat();
}
catch (e) {
console.log(e);
alert(`실패했습니다: ${e}`);
location.reload();
return;
}
location.reload();
});
$('#vacation').on('click', async function (e) {
e.preventDefault();
if (!confirm('휴가 기능을 신청할까요?')) {