diff --git a/components/main/header.vue b/components/main/header.vue index c968880..1f73e4c 100644 --- a/components/main/header.vue +++ b/components/main/header.vue @@ -5,6 +5,11 @@ const colorMode = useColorMode() function onClick(val: string) { colorMode.preference = val } + +const route = useRoute() +function isActive(path: string) { + return route.path.startsWith(path) +} - -