fix:bug router(-1)
This commit is contained in:
parent
453c674907
commit
86584622fe
8 changed files with 52 additions and 46 deletions
|
|
@ -71,14 +71,15 @@ async function confirm(status: boolean, reason: string) {
|
|||
status: status,
|
||||
reason: reason,
|
||||
})
|
||||
.then((res) => {})
|
||||
.then(() => {
|
||||
success($q, "ตรวจสอบข้อมูลสำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
success($q, "ตรวจสอบข้อมูลสำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -89,14 +90,15 @@ async function reject(reason: string) {
|
|||
.put(config.API.candidateRejectRegister(candidateId.value), {
|
||||
reason: reason,
|
||||
})
|
||||
.then((res) => {})
|
||||
.then(() => {
|
||||
success($q, "ตรวจสอบข้อมูลสำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
success($q, "ตรวจสอบข้อมูลสำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -123,14 +125,15 @@ async function rejectReverse(reason: string) {
|
|||
.put(config.API.candidateCheckRegisterReject(candidateId.value), {
|
||||
reason: reason,
|
||||
})
|
||||
.then((res) => {})
|
||||
.then(() => {
|
||||
success($q, "สำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
success($q, "สำเร็จ");
|
||||
router.push(`/qualify/manage/${examId.value}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -289,7 +292,7 @@ onMounted(async () => {
|
|||
flat
|
||||
color="primary"
|
||||
class="q-mr-sm"
|
||||
@click="router.go(-1)"
|
||||
@click="router.push(`/qualify/manage/${examId}`)"
|
||||
/>
|
||||
ตรวจสอบคุณสมบัติผู้สมัครสอบรอบคัดเลือก
|
||||
{{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue