Chore: 更新框架到 React Router 7
修复迁移到 Tailwind 4 之后的样式差异 修复 404 页面的异常并调整样式 优化分页器组件的无障碍化,Span 标签替换成 Button
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import {
|
||||
type RouteConfig,
|
||||
index,
|
||||
layout,
|
||||
route,
|
||||
} from "@react-router/dev/routes";
|
||||
|
||||
export default [
|
||||
layout("routes/app-layout.tsx", [
|
||||
index("routes/index.tsx"),
|
||||
route("note", "routes/note.tsx"),
|
||||
route("note/:year/:id", "routes/note-detail.tsx"),
|
||||
route("gallery/*", "routes/gallery.tsx"),
|
||||
route("*", "routes/page.tsx"),
|
||||
]),
|
||||
] satisfies RouteConfig;
|
||||
Reference in New Issue
Block a user