File tree 1 file changed +11
-1
lines changed
packages/frontendmu-nuxt/components/site
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
import { computed , onMounted } from ' vue' ;
3
3
const currentPath = computed (() => useRoute ().path );
4
4
5
+ const router = useRouter ();
6
+
5
7
interface TMenuItem {
6
8
title: string ;
7
9
href: string ;
@@ -101,6 +103,13 @@ function makeHeaderSticky() {
101
103
observer .observe (target );
102
104
}
103
105
106
+ function handleRightClick(event : MouseEvent ) {
107
+ // prevent default and navigate to /branding
108
+ event .preventDefault ();
109
+ router .push (' /branding' );
110
+
111
+ }
112
+
104
113
onMounted (makeHeaderSticky );
105
114
</script >
106
115
@@ -109,7 +118,8 @@ onMounted(makeHeaderSticky);
109
118
<div class =" menu theme-light w-full" >
110
119
<div class =" flex justify-between items-center" >
111
120
<div class =" flex" >
112
- <NuxtLink href =" /" class =" flex gap-2 text-verse-500 dark:text-verse-200" title =" Hello Kitty!" >
121
+ <NuxtLink href =" /" class =" flex gap-2 text-verse-500 dark:text-verse-200" title =" frontend.mu"
122
+ @contextmenu =" handleRightClick" >
113
123
<SiteLogo class =" w-10" />
114
124
<span class =" hidden text-lg font-bold leading-none tracking-tighter md:text-3xl md:block" >
115
125
frontend.mu
You can’t perform that action at this time.
0 commit comments