chore: 脚手架
This commit is contained in:
@@ -61,6 +61,11 @@ function convertRoutes(
|
||||
? normalizePath
|
||||
: `${normalizePath}.vue`
|
||||
];
|
||||
if (!route.component) {
|
||||
console.error(`未找到对应组件: ${component}`);
|
||||
// 默认为404页面
|
||||
route.component = layoutMap.NotFoundComponent;
|
||||
}
|
||||
}
|
||||
|
||||
return route;
|
||||
|
Reference in New Issue
Block a user