25 lines
611 B
TypeScript
25 lines
611 B
TypeScript
import {productRouter} from 'product/ProductRouter'
|
|
import {RouteRecordRaw} from 'vue-router'
|
|
|
|
|
|
const baseRouter: Array<RouteRecordRaw> = [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: () => import('../views/Home'),
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'about',
|
|
component: () => import('../views/About'),
|
|
},
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'NotFound',
|
|
component: () => import('../views/NotFound')
|
|
}
|
|
];
|
|
|
|
// 聚合所有功能模块的路由
|
|
const routes: RouteRecordRaw[] = [...baseRouter, ...productRouter];
|
|
export default routes; |