fix(VnSection): destroy data when unmounted
This commit is contained in:
parent
2027c365fa
commit
02da97a8df
|
@ -75,6 +75,10 @@ onMounted(() => {
|
||||||
onUnmounted(unsubscribe);
|
onUnmounted(unsubscribe);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onUnmounted(() => {
|
||||||
|
if (arrayData) arrayData.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
function checkIsMain() {
|
function checkIsMain() {
|
||||||
isMainSection.value = sectionValue.value == route.name;
|
isMainSection.value = sectionValue.value == route.name;
|
||||||
if (!isMainSection.value && arrayData) {
|
if (!isMainSection.value && arrayData) {
|
||||||
|
|
Loading…
Reference in New Issue