fix bug ยื่นคำร้องขอเพิ่มข้อมูลการพัฒนารายบุคคล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-13 13:50:56 +07:00
parent d203a319b5
commit 3817416ba9

View file

@ -26,7 +26,9 @@ const router = useRouter();
const route = useRoute();
const isReadOnly = ref<boolean>(false);
const isEdit = ref<boolean>(false); // /
const requestId = ref<string>(route.params.id.toString());
const requestId = ref<string>(
route.params.id ? route.params.id.toString() : ""
);
const formData = reactive<FormDataIDP>({
topic: "",
@ -546,7 +548,7 @@ onMounted(() => {
<div class="col-12 q-mt-sm">
<Workflow
v-if="dataStore.officerType === 'OFFICER'"
v-if="dataStore.officerType === 'OFFICER' && requestId"
ref="workflowRef"
:id="requestId"
sys-name="REGISTRY_IDP"