fix: 修复配音库上传按钮跳转路径错误 (#1266) #1267
Reference in New Issue
Block a user
Delete Branch "fix/issue-1266-voice-upload-redirect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复内容
修复 Step5「去配音库上传」按钮跳转错误:
window.location.href = "/voices"→navigate("/app/voices")/app前缀,与实际路由一致Fixes #1266
【阻塞级判定】
📊 审查概览
🔴 阻塞级问题(必须修复)
无
💡 改进建议(不阻塞合并)
无
✅ 良好实践
window.location.href替换为react-router-dom的navigate,这是 SPA 应用的最佳实践,避免了页面完全刷新,保留了应用状态,提升了用户体验和性能。useCallback正确地将navigate加入依赖数组,符合 React Hooks 规则和 ESLintexhaustive-deps要求。🤖 由 AI 代码审查机器人自动生成 | 2026-08-07 10:38:09 | 模型:
🚀 预览环境已部署
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #1267 已关闭或合并,对应的预览环境已被清理。