fix: refs #7598 fix evt & .value

This commit is contained in:
Jorge Penadés 2024-06-18 09:43:44 +02:00
parent e6bf73c8d1
commit 37af8ba8f5
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ const $props = defineProps({
description: 'It is used for redirect on click "save and continue"',
},
});
const emit = defineEmits(['onFetch', 'onDataSaved']);
const emit = defineEmits(['onFetch', 'onDataSav7ed']);
const modelValue = computed(
() => $props.model ?? `formModel_${route?.meta?.title ?? route.name}`
);
@ -121,7 +121,7 @@ onMounted(async () => {
if (!$props.formInitialData) {
if ($props.autoLoad && $props.url) await fetch();
else if (arrayData.store.data) updateAndEmit(arrayData.store.data, 'onFetch');
else if (arrayData.store.data) updateAndEmit('onFetch', arrayData.store.data);
}
if ($props.observeFormChanges) {
watch(