合并之前缺少部分
This commit is contained in:
@ -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],
|
||||
},
|
||||
{
|
||||
|
||||
@ -9,6 +9,7 @@ const COMPONENTS: AppRouteRecordRaw = {
|
||||
icon: IconBookmark,
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
requiresSidebar: true,
|
||||
},
|
||||
children: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user