fix(VnSection): refs #8197 check route #1263
|
@ -51,7 +51,7 @@ const router = useRouter();
|
|||
|
||||
let arrayData;
|
||||
const sectionValue = computed(() => $props.section ?? $props.dataKey);
|
||||
const isMainSection = ref();
|
||||
const isMainSection = ref(false);
|
||||
alexm marked this conversation as resolved
Outdated
|
||||
|
||||
const searchbarId = 'section-searchbar';
|
||||
const hasContent = useHasContent(`#${searchbarId}`);
|
||||
|
@ -71,7 +71,7 @@ onMounted(() => {
|
|||
const unsubscribe = router.afterEach(() => {
|
||||
checkIsMain();
|
||||
});
|
||||
onUnmounted(() => unsubscribe());
|
||||
onUnmounted(unsubscribe);
|
||||
alexm marked this conversation as resolved
Outdated
jsegarra
commented
Bien, y así también serviria Bien, y así también serviria ` onUnmounted(unsubscribe);` no?
|
||||
});
|
||||
|
||||
function checkIsMain() {
|
||||
|
|
Loading…
Reference in New Issue
valor por defecto a false? Asumo que por el nombre es un booleano
null me vale jajaj pero si le pongo false