#6942 improve invoiceIn #220

Merged
jorgep merged 63 commits from 6942-improveInvoceIn into dev 2024-05-29 07:03:46 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 7f880b397c - Show all commits

View File

@ -1,5 +1,5 @@
<script setup>
import { onBeforeMount, computed, watchEffect } from 'vue';
import { onBeforeMount, computed, watchEffect, watch } from 'vue';
jorgep marked this conversation as resolved Outdated

Warning

Warning
import { useRoute, onBeforeRouteUpdate } from 'vue-router';
import { useArrayData } from 'src/composables/useArrayData';
import { useStateStore } from 'stores/useStateStore';
@ -42,7 +42,7 @@ onBeforeMount(async () => {
if (props.baseUrl) {
onBeforeRouteUpdate(async (to, from) => {
if (to.params.id !== from.params.id) {
arrayData.store.url = `${props.baseUrl}/${route.params.id}`;
arrayData.store.url = `${props.baseUrl}/${to.params.id}`;

Al no haber cambiado de ruta, se estaba poniendo el mismo id actual.

Al no haber cambiado de ruta, se estaba poniendo el mismo id actual.
await arrayData.fetch({ append: false });
}
});