Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions frontend/src/composables/useRoutePrefetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,8 @@ export function useRoutePrefetch(router?: Router) {
const prefetchComponent = async (importFn: ComponentImportFn): Promise<void> => {
try {
await importFn()
} catch (error) {
// 静默处理预加载错误
if (import.meta.env.DEV) {
console.debug('[Prefetch] Failed to prefetch component:', error)
}
} catch {
// 静默处理预加载错误 (silently handle prefetch errors)
}
}

Expand Down