修复路由文件扩展名问题

- 将 router.js 重命名为 router.jsx
- 修复 "Unexpected token '<'" 语法错误
- 更新 App.jsx 中的导入路径
- JSX 文件必须使用 .jsx 扩展名

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zhongyidianandClaude committed 2025-10-16 23:30:49 +08:00
1 parent 6b84a5ed98
commit 5e84020b44
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { RouterProvider } from 'react-router-dom'; import { RouterProvider } from 'react-router-dom';
import router from './router'; import router from './router.jsx';
function App() { function App() {
return <RouterProvider router={router} />; return <RouterProvider router={router} />;
View File
File renamed without changes.