feat: fetch data
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s

This commit is contained in:
Aif 2025-10-17 10:11:25 +07:00
parent aaf776639d
commit 2afb5ea7e9
2 changed files with 14 additions and 0 deletions

View file

@ -134,6 +134,11 @@ onMounted(async () => {
creditNote.getCreditNoteStats().then((res) => res && (stats.value = res)); creditNote.getCreditNoteStats().then((res) => res && (stats.value = res));
getList(); getList();
window.addEventListener('focus', () => {
creditNote.getCreditNoteStats().then((res) => res && (stats.value = res));
getList();
});
}); });
watch( watch(

View file

@ -143,6 +143,15 @@ onMounted(async () => {
}); });
getList(); getList();
window.addEventListener('focus', () => {
debitNote.getDebitNoteStats().then((res) => {
if (res) {
stats.value = res;
}
});
getList();
});
}); });
watch( watch(