ปรับแสดงการเผยแพร่โครงสร้าง
This commit is contained in:
parent
039d4081d6
commit
76cd4e170b
4 changed files with 38 additions and 22 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue