fix(VnSection): refs #8197 check route #1263

Merged
alexm merged 4 commits from 8197-better_check_route into dev 2025-01-21 14:11:35 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 979c96c5ac - Show all commits

View File

@ -51,7 +51,7 @@ const router = useRouter();
let arrayData; let arrayData;
const sectionValue = computed(() => $props.section ?? $props.dataKey); const sectionValue = computed(() => $props.section ?? $props.dataKey);
const isMainSection = ref(); const isMainSection = ref(false);
alexm marked this conversation as resolved Outdated

valor por defecto a false? Asumo que por el nombre es un booleano

valor por defecto a false? Asumo que por el nombre es un booleano
Outdated
Review

null me vale jajaj pero si le pongo false

null me vale jajaj pero si le pongo false
const searchbarId = 'section-searchbar'; const searchbarId = 'section-searchbar';
const hasContent = useHasContent(`#${searchbarId}`); const hasContent = useHasContent(`#${searchbarId}`);
@ -71,7 +71,7 @@ onMounted(() => {
const unsubscribe = router.afterEach(() => { const unsubscribe = router.afterEach(() => {
checkIsMain(); checkIsMain();
}); });
onUnmounted(() => unsubscribe()); onUnmounted(unsubscribe);
alexm marked this conversation as resolved Outdated

Bien, y así también serviria onUnmounted(unsubscribe); no?

Bien, y así también serviria ` onUnmounted(unsubscribe);` no?
}); });
function checkIsMain() { function checkIsMain() {