ปรับแสดงการเผยแพร่โครงสร้าง

This commit is contained in:
Warunee Tamkoo 2024-02-01 14:32:59 +07:00
parent 039d4081d6
commit 76cd4e170b
4 changed files with 38 additions and 22 deletions

View file

@ -11,6 +11,11 @@ import config from "@/app.config";
const props = defineProps({
modal: Boolean,
close: Function,
fetchActive: {
type: Function,
require: true,
default: () => "Function fetchActive",
},
});
const store = useOrganizational();
@ -67,6 +72,7 @@ function onSubmit() {
})
.then((res) => {
props.close?.();
props.fetchActive();
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((e) => {
@ -82,7 +88,7 @@ watch(
() => props.modal,
() => {
if (props.modal === true) {
dateTime.value = null;
dateTime.value = store.orgPublishDate ? store.orgPublishDate : null;
}
}
);