space to enter / แก้คำ /showload

This commit is contained in:
setthawutttty 2025-03-26 10:20:53 +07:00
parent 51bd71ad83
commit 6a3eeaf2e5
7 changed files with 40 additions and 13 deletions

View file

@ -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>