7837-testToMaster_2432 #592

Merged
alexm merged 165 commits from 7837-testToMaster_2432 into master 2024-08-06 05:54:11 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 453e3f92e5 - Show all commits

View File

@ -1,6 +1,6 @@
<script setup>
import { ref, reactive, computed, onBeforeMount } from 'vue';
import { useRouter, onBeforeRouteLeave } from 'vue-router';
import { useRouter, onBeforeRouteUpdate } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar';
import axios from 'axios';
@ -129,10 +129,10 @@ onBeforeMount(async () => {
totalAmount.value = data.totalDueDay;
});
onBeforeRouteLeave(async (to, from) => {
onBeforeRouteUpdate(async (to, from) => {
invoiceInCorrection.correcting.length = 0;
invoiceInCorrection.corrected = null;
if (to.params.id !== from.params.id) await setInvoiceCorrection(entityId.value);
if (to.params.id !== from.params.id) await setInvoiceCorrection(to.params.id);
});
async function setInvoiceCorrection(id) {
@ -374,7 +374,7 @@ const createInvoiceInCorrection = async () => {
</template>
</VnLv>
</template>
<template #action="{ entity }">
<template #actions="{ entity }">
<QCardActions>
<QBtn
size="md"