ปรับ Eva

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-24 15:05:48 +07:00
parent 965304339d
commit 6813d496e8
8 changed files with 317 additions and 92 deletions

View file

@ -321,7 +321,7 @@ async function saveStep1() {
}));
const performances = formDetail.value.assessments.map(
({ id, ...rest }: any) => ({
({ id, isAdd, ...rest }: any) => ({
...rest,
})
);
@ -444,8 +444,8 @@ async function saveStep2() {
),
{ ...formCommand, assignedPosition: undefined }
)
.then(() => {
route.params.id && fetchCheckStep(route.params.id.toString());
.then(async () => {
route.params.id && (await fetchCheckStep(route.params.id.toString()));
})
.catch((err) => {
messageError($q, err);
@ -534,8 +534,8 @@ async function saveStep6() {
),
body
)
.then(() => {
route.params.id && fetchCheckStep(route.params.id.toString());
.then(async () => {
route.params.id && (await fetchCheckStep(route.params.id.toString()));
})
.catch((err) => {
messageError($q, err);