2025-02-28 20:14:37 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
import Layout from '@/layout/index.vue';
|
2025-03-01 22:18:18 +08:00
|
|
|
import home from '@/router/modules/home';
|
2025-02-28 20:14:37 +08:00
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
2025-03-01 22:18:18 +08:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'layout',
|
|
|
|
component: Layout,
|
|
|
|
redirect: 'welcome',
|
|
|
|
children: [...home],
|
|
|
|
},
|
2025-02-28 20:14:37 +08:00
|
|
|
{
|
|
|
|
path: '/redirect',
|
|
|
|
component: Layout,
|
|
|
|
meta: { hidden: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '/redirect/:path(.*)',
|
|
|
|
component: () => import('@/views/redirect/index.vue'),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|