diff --git a/frontend/src/views/HomeView.vue b/frontend/src/views/HomeView.vue index a06949a8..7f0994ca 100644 --- a/frontend/src/views/HomeView.vue +++ b/frontend/src/views/HomeView.vue @@ -61,7 +61,7 @@
{{ isAuthenticated ? t('home.goToDashboard') : t('home.getStarted') }} @@ -416,6 +416,8 @@ const githubUrl = 'https://github.com/Wei-Shaw/sub2api' // Auth state const isAuthenticated = computed(() => authStore.isAuthenticated) +const isAdmin = computed(() => authStore.isAdmin) +const dashboardPath = computed(() => isAdmin.value ? '/admin/dashboard' : '/dashboard') const userInitial = computed(() => { const user = authStore.user if (!user || !user.email) return ''