mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-10 18:53:44 +08:00
refactor(projects): 代码优化
This commit is contained in:
@@ -24,7 +24,7 @@ export function getLayoutComponent(layoutType: EnumType.LayoutComponentName) {
|
||||
*/
|
||||
export function getViewComponent(routeKey: AuthRoute.RouteKey) {
|
||||
if (!views[routeKey]) {
|
||||
consoleError(`该路由“${routeKey}”没有对应的组件文件!`);
|
||||
consoleError(`路由“${routeKey}”没有对应的组件文件!`);
|
||||
}
|
||||
return () => setViewComponentName(views[routeKey], routeKey) as Promise<Component>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user