Files
vue-bits/src/App.vue
2025-07-12 15:28:52 +03:00

23 lines
521 B
Vue

<template>
<div>
<DisplayHeader v-if="!isCategoryPage" :activeItem="activeItem" />
<router-view />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import DisplayHeader from '@/components/landing/DisplayHeader/DisplayHeader.vue';
const route = useRoute();
const isCategoryPage = computed(() => /^\/[^/]+\/[^/]+$/.test(route.path));
const activeItem = computed(() => {
if (route.path === '/') return 'home';
return null;
});
</script>