forked from verdnatura/salix-front
Solucion a comentarios 16
This commit is contained in:
parent
a0d75e5b02
commit
d06271b91d
|
@ -70,6 +70,7 @@ defineExpose({
|
||||||
const componentIsRendered = ref(false);
|
const componentIsRendered = ref(false);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
originalData.value = $props.formInitialData;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
componentIsRendered.value = true;
|
componentIsRendered.value = true;
|
||||||
});
|
});
|
||||||
|
@ -98,7 +99,7 @@ const isLoading = ref(false);
|
||||||
// Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas
|
// Si elegimos observar los cambios del form significa que inicialmente las actions estaran deshabilitadas
|
||||||
const isResetting = ref(false);
|
const isResetting = ref(false);
|
||||||
const hasChanges = ref(!$props.observeFormChanges);
|
const hasChanges = ref(!$props.observeFormChanges);
|
||||||
const originalData = ref({ ...$props.formInitialData });
|
const originalData = ref({});
|
||||||
const formData = computed(() => state.get($props.model));
|
const formData = computed(() => state.get($props.model));
|
||||||
const formUrl = computed(() => $props.url);
|
const formUrl = computed(() => $props.url);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue