Sink/app/components/dashboard/Nav.vue
wudi 7cadbfe2b1 refactor: Migrate project files and directories to the app directory using the new compatibilityVersion: 4 feature
- Moved `app.config.ts` to the `app` directory
- Migrated `.vue` files and other assets to the `app` directory
- Updated import paths to reflect the new file locations
2025-03-24 11:05:59 +08:00

28 lines
600 B
Vue

<script setup>
const route = useRoute()
</script>
<template>
<section class="flex justify-between">
<Tabs
v-if="route.path !== '/dashboard/link'"
:default-value="route.path"
@update:model-value="navigateTo"
>
<TabsList>
<TabsTrigger
value="/dashboard/links"
>
{{ $t('nav.links') }}
</TabsTrigger>
<TabsTrigger value="/dashboard/analysis">
{{ $t('nav.analysis') }}
</TabsTrigger>
</TabsList>
</Tabs>
<slot name="left" />
<div>
<slot />
</div>
</section>
</template>