Skip to content

fix: 使用客户端路由刷新替代全页刷新#271

Open
blankPen wants to merge 1 commit intoabhi1693:masterfrom
blankPen:fix/client-navigation
Open

fix: 使用客户端路由刷新替代全页刷新#271
blankPen wants to merge 1 commit intoabhi1693:masterfrom
blankPen:fix/client-navigation

Conversation

@blankPen
Copy link

变更说明

  • 将 window.location.reload() 替换为 router.refresh()
  • 避免每次切换页面时完全刷新整个页面,提升性能
  • 添加 router 依赖到 useEffect 依赖数组

修复位置

  • frontend/src/components/templates/DashboardShell.tsx

验收标准

  • 切换页面时不再刷新整个页面
  • 使用客户端导航

- 将 window.location.reload() 替换为 router.refresh()
- 避免每次切换页面时完全刷新,提升性能
- 添加 router 依赖到 useEffect 依赖数组
Copy link
Owner

@abhi1693 abhi1693 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you submit the changes including the description and title in English?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants