fix(VnSection): destroy data when unmounted

This commit is contained in:
Alex Moreno 2025-01-27 10:00:09 +01:00
parent 2027c365fa
commit 02da97a8df
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ onMounted(() => {
onUnmounted(unsubscribe);
});
onUnmounted(() => {
if (arrayData) arrayData.destroy();
});
function checkIsMain() {
isMainSection.value = sectionValue.value == route.name;
if (!isMainSection.value && arrayData) {