fix: refs #6900 rectificative btn reactivity
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-08-09 09:09:16 +02:00
parent 4dc12cf119
commit 88b6d7c9ae
1 changed files with 2 additions and 2 deletions

View File

@ -130,9 +130,9 @@ onBeforeMount(async () => {
});
onBeforeRouteUpdate(async (to, from) => {
if (to.params.id !== from.params.id) {
invoiceInCorrection.correcting.length = 0;
invoiceInCorrection.corrected = null;
if (to.params.id !== from.params.id) {
await setInvoiceCorrection(to.params.id);
const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`);
totalAmount.value = data.totalDueDay;