fix bug
This commit is contained in:
parent
c161c0b332
commit
853a78f139
1 changed files with 7 additions and 7 deletions
|
|
@ -172,9 +172,9 @@ const calculateMaxDate = () => {
|
|||
// เช็คเรื่องการเกษียณ
|
||||
const calRetire = async (birth: Date) => {
|
||||
const body = {
|
||||
birthDate: dateToPost(birth),
|
||||
birthDate: dateToISO(birth),
|
||||
};
|
||||
if (dateToISO(dateBefore.value) > dateToPost(birth)) {
|
||||
if (dateToISO(dateBefore.value) > dateToISO(birth)) {
|
||||
// showLoader();
|
||||
await http
|
||||
.post(config.API.profileCalRetire, body)
|
||||
|
|
@ -185,11 +185,11 @@ const calRetire = async (birth: Date) => {
|
|||
changeRetireText(data.retireDate);
|
||||
dateBefore.value = birth;
|
||||
})
|
||||
// .catch((e: any) => {
|
||||
// messageError($q, e);
|
||||
// informaData.value.birthDate = null;
|
||||
// informaData.value.age = "";
|
||||
// })
|
||||
.catch((e: any) => {
|
||||
messageError($q, e);
|
||||
informaData.value.birthDate = null;
|
||||
informaData.value.age = "";
|
||||
})
|
||||
.finally(() => {
|
||||
// hideLoader();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue