合并之前缺少部分

This commit is contained in:
muzi
2025-06-17 11:18:39 +08:00
parent a72487fe56
commit 384be13f46
32 changed files with 2394 additions and 220 deletions

View File

@ -19,14 +19,25 @@ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
path: '/login',
name: 'login',
component: () => import('@/views/components/login'),
},
{
path: '/workplace',
name: 'workplace',
component: () => import('@/views/components/workplace'),
},
{
path: '/',
name: 'dataEngine',
redirect: '/dataEngine/dataEngine/hotTranslation',
children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
},
{
path: '/dataEngine',
name: 'dataEngine',
redirect: '@/views/components/dataEngine',
redirect: '/dataEngine/dataEngine/hotTranslation',
children: [...appRoutes, REDIRECT_MAIN, NOT_FOUND_ROUTE],
},
{

View File

@ -9,6 +9,7 @@ const COMPONENTS: AppRouteRecordRaw = {
icon: IconBookmark,
requiresAuth: true,
roles: ['*'],
requiresSidebar: true,
},
children: [
{