Enhances navigation by redirecting the main dashboard to the analysis page and updating the navigation link to directly access the analysis section. This change streamlines user access to the primary dashboard functionality.
29 lines
560 B
Vue
29 lines
560 B
Vue
<script setup>
|
|
const route = useRoute()
|
|
</script>
|
|
|
|
<template>
|
|
<nav class="flex justify-between">
|
|
<Tabs
|
|
v-if="route.path !== '/dashboard/link'"
|
|
:default-value="route.path"
|
|
@update:model-value="navigateTo"
|
|
>
|
|
<TabsList>
|
|
<TabsTrigger
|
|
value="/dashboard/links"
|
|
>
|
|
Links
|
|
</TabsTrigger>
|
|
<TabsTrigger value="/dashboard/analysis">
|
|
Analysis
|
|
</TabsTrigger>
|
|
</TabsList>
|
|
</Tabs>
|
|
<slot name="left" />
|
|
<div>
|
|
<slot />
|
|
</div>
|
|
</nav>
|
|
</template>
|