基于Vue3+OOP+JSX改造项目代码,增加pnpm统一管理依赖

This commit is contained in:
编码猿
2025-09-19 02:20:18 +08:00
parent 064d368ae4
commit 1e16236e13
18 changed files with 254 additions and 224 deletions

View File

@@ -0,0 +1,25 @@
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;