chore: 未找到组件提示信息

This commit is contained in:
dap 2024-08-09 15:38:08 +08:00
parent ad23b554ab
commit b466787f84

View File

@ -62,7 +62,7 @@ function convertRoutes(
: `${normalizePath}.vue`
];
if (!route.component) {
console.error(`未找到对应组件: ${component}`);
console.error(`未找到对应组件: /views${component}.vue`);
// 默认为404页面
route.component = layoutMap.NotFoundComponent;
}