pgo-ui 1.0.74 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,6 +150,7 @@
150
150
 
151
151
  const valid = ref(false);
152
152
  const formId = ref(null);
153
+ const relationId = ref(null);
153
154
  const open = ref(true);
154
155
  const formRef = ref(null);
155
156
  const isSubmitting = ref(false);
@@ -644,7 +645,7 @@ const initializeFormData = () => {
644
645
 
645
646
  // Add relationId for file upload components
646
647
  if (field.inputType === 'file' || field.inputType === 'filefield') {
647
- cleanProps.relationId = formId.value || props.editItemId;
648
+ cleanProps.relationId = relationId.value;
648
649
  // cleanProps.onuploadSuccess = fetchData();
649
650
  // cleanProps.onviewPdf = emit('view-pdf');
650
651
  // cleanProps.fileList = FormDataList.value?.[ field.dataKey ?? field.key ];
@@ -811,8 +812,9 @@ const initializeFormData = () => {
811
812
  response = await api.post(createLink, submitData)
812
813
 
813
814
  // Transition to edit mode
814
- formId.value = response?.data?.id || response?.id
815
+ formId.value = (response?.data?.uuid || response?.uuid) ?? (response?.data?.id || response?.id)
815
816
  formData.id = formId.value
817
+ relationId.value = response?.data?.id || response?.id
816
818
  formMode.value = 'edit' // ← trigger button swap
817
819
 
818
820
  await fetchData() // load saved data back
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-C17iCr8Z.js";
2
- export {
3
- f as default
4
- };