refactor: 抽取 UI 组件、改进错误页面、统一导入路径并简化数据库接口

This commit is contained in:
2026-04-02 00:13:43 +08:00
parent 4ec4576fc5
commit c67e773086
10 changed files with 197 additions and 136 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ export const Route = createRootRouteWithContext<RouterContext>()({
],
}),
shellComponent: RootDocument,
errorComponent: () => <ErrorComponent />,
notFoundComponent: () => <NotFoundComponent />,
errorComponent: ErrorComponent,
notFoundComponent: NotFoundComponent,
})
function RootDocument({ children }: Readonly<{ children: ReactNode }>) {