From 5e84020b44a81006fea9d866652090fa7fe7f8b2 Mon Sep 17 00:00:00 2001 From: join_zhong Date: Thu, 16 Oct 2025 23:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=89=A9=E5=B1=95=E5=90=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 router.js 重命名为 router.jsx - 修复 "Unexpected token '<'" 语法错误 - 更新 App.jsx 中的导入路径 - JSX 文件必须使用 .jsx 扩展名 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/App.jsx | 2 +- src/{router.js => router.jsx} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/{router.js => router.jsx} (100%) diff --git a/src/App.jsx b/src/App.jsx index e521be4..aa9a4e2 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,5 @@ import { RouterProvider } from 'react-router-dom'; -import router from './router'; +import router from './router.jsx'; function App() { return ; diff --git a/src/router.js b/src/router.jsx similarity index 100% rename from src/router.js rename to src/router.jsx