fix: 修复拖拽排序持久化 + 恢复 package.json catalog 引用

- 引入 @dnd-kit/helpers,使用 move() 替代手工 splice 排序逻辑
- 恢复 apps/server/package.json 中所有依赖的 catalog: 引用
- 简化 ORPC client,移除 experimental_defaults,改用 MutationCache
- route loaders 改用 fetchQuery 确保数据刷新
This commit is contained in:
2026-03-31 17:01:47 +08:00
parent ba8224e81e
commit 46e4486d7d
9 changed files with 108 additions and 157 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import { SearchBar } from '@/modules/bookmarks/components/SearchBar'
export const Route = createFileRoute('/_protected/' as never)({
loader: async ({ context }: { context: { queryClient: QueryClient } }) => {
await context.queryClient.ensureQueryData(orpc.bookmarks.category.list.queryOptions())
await context.queryClient.fetchQuery(orpc.bookmarks.category.list.queryOptions())
},
component: DashboardPage,
})