perf: refs #8197 perf
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-01-21 14:11:03 +01:00
parent 5b5eca0606
commit 979c96c5ac
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ const router = useRouter();
let arrayData;
const sectionValue = computed(() => $props.section ?? $props.dataKey);
const isMainSection = ref();
const isMainSection = ref(false);
const searchbarId = 'section-searchbar';
const hasContent = useHasContent(`#${searchbarId}`);
@ -71,7 +71,7 @@ onMounted(() => {
const unsubscribe = router.afterEach(() => {
checkIsMain();
});
onUnmounted(() => unsubscribe());
onUnmounted(unsubscribe);
});
function checkIsMain() {