修复路由文件扩展名问题
- 将 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:
1 parent
6b84a5ed98
commit
5e84020b44
2 files changed
+1
-1
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { RouterProvider } from 'react-router-dom';
|
||||
import router from './router';
|
||||
import router from './router.jsx';
|
||||
|
||||
function App() {
|
||||
return <RouterProvider router={router} />;
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user