closed #14
This commit is contained in:
parent
c1e485519a
commit
f00e98766c
2 changed files with 8 additions and 7 deletions
|
|
@ -29,6 +29,7 @@ const props = defineProps({
|
|||
fetchActive: {
|
||||
type: Function,
|
||||
require: true,
|
||||
default: () => "fetchActive function",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -84,7 +85,6 @@ function validateForm() {
|
|||
}
|
||||
if (hasError.every((result) => result === true)) {
|
||||
onSubmit();
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ function onSubmit() {
|
|||
store.draftId = res.data.result.id;
|
||||
store.statusView = "list";
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
props.fetchActive?.();
|
||||
props.fetchActive();
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue