Navigation to external site in blank page

This commit is contained in:
2025-10-15 19:14:26 +02:00
parent b0a63197e3
commit 68ec11afea

View File

@@ -41,8 +41,8 @@
import type { NavigationMenuItem } from '#ui/components/NavigationMenu.vue'; import type { NavigationMenuItem } from '#ui/components/NavigationMenu.vue';
const items = computed<NavigationMenuItem[]>(() => [ const items = computed<NavigationMenuItem[]>(() => [
{ label: 'API', to: 'https://github.com/C9Glax/tranga', icon: 'i-lucide-github' }, { label: 'API', to: 'https://github.com/C9Glax/tranga', icon: 'i-lucide-github', target: '_blank' },
{ label: 'Website', to: 'https://github.com/C9Glax/tranga/website', icon: 'i-lucide-github' }, { label: 'Website', to: 'https://github.com/C9Glax/tranga/website', icon: 'i-lucide-github', target: '_blank' },
{ label: 'Swagger', to: `${useRuntimeConfig().public.openFetch.api.baseURL}swagger`, icon: 'i-lucide-book-open' }, { label: 'Swagger', to: `${useRuntimeConfig().public.openFetch.api.baseURL}swagger`, icon: 'i-lucide-book-open', target: '_blank' },
]); ]);
</script> </script>