mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Docs Cleanup
This commit is contained in:
@@ -13,12 +13,10 @@ 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;
|
||||
});
|
||||
|
||||
const isCategoryPage = computed(() => {
|
||||
return /^\/[^/]+\/[^/]+$/.test(route.path);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user