Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m4s

* develop:
  fix(placement):path API CalRetire
This commit is contained in:
Warunee Tamkoo 2025-10-15 12:37:48 +07:00
commit ca167937cf
3 changed files with 15 additions and 3 deletions

View file

@ -169,7 +169,7 @@ export default {
profileOrganizRoot: `${profile}organization/root`,
profileCalRetire: `${profile}cal/retire`,
profileCalRetire: `${registryNew}cal/retire`,
profilePositionNumber: `${profile}position-number`,
organizationName: (ocId: string) => `${profile}organization/${ocId}`,
profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`,

View file

@ -53,7 +53,13 @@ async function calRetire(birth: Date) {
.post(config.API.profileCalRetire, body)
.then((res: any) => {
const data = res.data.result;
informaData.value.age = data.age;
informaData.value.age =
data.age.year +
" ปี " +
data.age.month +
" เดือน" +
data.age.day +
" วัน";
changeRetireText(data.retireDate);
age.value = true;
})

View file

@ -175,7 +175,13 @@ const calRetire = async (birth: Date) => {
.post(config.API.profileCalRetire, body)
.then((res: any) => {
const data = res.data.result;
informaData.value.age = data.age;
informaData.value.age =
data.age.year +
" ปี " +
data.age.month +
" เดือน" +
data.age.day +
" วัน";
changeRetireText(data.retireDate);
age.value = true;
})