diff --git a/src/store/router/helper.ts b/src/store/router/helper.ts index 12cf81a..a87b16a 100644 --- a/src/store/router/helper.ts +++ b/src/store/router/helper.ts @@ -83,8 +83,8 @@ export function createRoutes(routeData: (AppRoute.BackendRoute | AppRoute.RowRou // 如果组件未找到,输出调试信息并提供默认组件 if (!originalComponent) { - console.warn(`组件未找到: ${fullPath}`) - console.warn('可用组件路径:', Object.keys(modules).slice(0, 10)) // 只显示前10个避免日志过长 + // console.warn(`组件未找到: ${fullPath}`) + // console.warn('可用组件路径:', Object.keys(modules).slice(0, 10)) // 只显示前10个避免日志过长 // 为找不到组件的页面提供一个默认的空页面组件 item.component = safeAsyncComponent( @@ -115,11 +115,9 @@ export function createRoutes(routeData: (AppRoute.BackendRoute | AppRoute.RowRou onError: (error, retry, fail, attempts) => { console.error(`组件加载失败: ${fullPath}`, error) if (attempts <= 2) { - console.warn(`重试加载组件: ${fullPath} (第${attempts}次)`) retry() } else { - console.error(`组件加载最终失败: ${fullPath}`) fail() } },