23 lines
402 B
TypeScript
23 lines
402 B
TypeScript
![]() |
import type { RouteRecordRaw } from 'vue-router';
|
||
|
|
||
|
/**
|
||
|
* 自定义路由
|
||
|
*/
|
||
|
export const customRoutes: Array<RouteRecordRaw> = [
|
||
|
{
|
||
|
name: 'root',
|
||
|
path: '/',
|
||
|
redirect: 'home'
|
||
|
},
|
||
|
{
|
||
|
name: 'home',
|
||
|
path: '/home',
|
||
|
component: () => import('@/views/home/index.vue')
|
||
|
},
|
||
|
{
|
||
|
name: 'system',
|
||
|
path: '/system',
|
||
|
component: () => import('@/views/system/index.vue')
|
||
|
}
|
||
|
];
|