fix bug
This commit is contained in:
parent
5785ae6418
commit
ca213d6c76
1 changed files with 7 additions and 4 deletions
|
|
@ -175,18 +175,21 @@ function closeDialog() {
|
|||
}
|
||||
|
||||
/** dialog submit */
|
||||
function onSubmit() {
|
||||
async function onSubmit() {
|
||||
if (formProject.nodeId) {
|
||||
http
|
||||
await showLoader();
|
||||
await http
|
||||
.post(config.API.developmentMain, formProject)
|
||||
.then((res) => {
|
||||
closeDialog();
|
||||
router.push(`/development/${res.data.result}`);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {});
|
||||
.finally(async () => {
|
||||
await closeDialog();
|
||||
await hideLoader();
|
||||
});
|
||||
} else {
|
||||
dialogMessageNotify($q, "กรุณาเลือกหน่วยงานที่รับผิดชอบ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue