space to enter / แก้คำ /showload
This commit is contained in:
parent
51bd71ad83
commit
6a3eeaf2e5
7 changed files with 40 additions and 13 deletions
|
|
@ -12,7 +12,7 @@ import type { RoundData } from "@/modules/06_retirement/interface/index/Main";
|
|||
/** Use */
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm, messageError } = mixin;
|
||||
const { dialogConfirm, messageError, showLoader, hideLoader } = mixin;
|
||||
const router = useRouter();
|
||||
|
||||
/** Prop */
|
||||
|
|
@ -90,6 +90,7 @@ async function clickSelect(action: string) {
|
|||
|
||||
// เพิ่มรอบประกาศเกษียณอายุราชการ API
|
||||
async function cerateRetirement(data: object) {
|
||||
showLoader();
|
||||
await http
|
||||
.post(config.API.createProfile(), data)
|
||||
.then((res) => {
|
||||
|
|
@ -99,7 +100,9 @@ async function cerateRetirement(data: object) {
|
|||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
});
|
||||
hideLoader();
|
||||
})
|
||||
.finally(() => {});
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue