@twotwoba/vv-cli
Version:
Easily create Vite + React19/Vue3 web/h5/mini-program/chrome-extension projects.
35 lines (34 loc) • 802 B
text/typescript
/**
* 基础路由
*/
export const basicRoutes = [
{
name: 'root',
path: '/',
redirect: import.meta.env.VITE_HOMEPAGE_PATH,
// component: Layout, // someone layout component
children: [
{
name: 'HelloWorld',
path: '/hello-world',
component: () => import('@/views/hello-world/index.vue'),
meta: {
title: 'Hello World',
isMenu: true
}
}
]
},
{
name: '404',
path: '/404',
component: () => import('@/views/error-page/404-page.vue'),
meta: {
title: '页面飞走了'
}
},
{
path: '/:pathMatch(.*)*',
redirect: '/404'
}
]