chore: 未找到组件提示信息
This commit is contained in:
parent
ad23b554ab
commit
b466787f84
@ -62,7 +62,7 @@ function convertRoutes(
|
|||||||
: `${normalizePath}.vue`
|
: `${normalizePath}.vue`
|
||||||
];
|
];
|
||||||
if (!route.component) {
|
if (!route.component) {
|
||||||
console.error(`未找到对应组件: ${component}`);
|
console.error(`未找到对应组件: /views${component}.vue`);
|
||||||
// 默认为404页面
|
// 默认为404页面
|
||||||
route.component = layoutMap.NotFoundComponent;
|
route.component = layoutMap.NotFoundComponent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user