diff --git a/packages/frontend/src/router/definition.ts b/packages/frontend/src/router/definition.ts index 899dc34fc20f..efcd8c70da8a 100644 --- a/packages/frontend/src/router/definition.ts +++ b/packages/frontend/src/router/definition.ts @@ -369,6 +369,7 @@ const routes: RouteDef[] = [{ component: iAmModerator ? page(() => import('@/pages/admin-file.vue')) : page(() => import('@/pages/not-found.vue')), }, { path: '/admin', + loginRequired: true, // component: iAmModerator ? page(() => import('@/pages/admin/index.vue')) : page(() => import('@/pages/not-found.vue')), component: page(() => import('@/pages/admin/index.vue')), children: [{