From 8dde600d28ec82775caa1d5cb92cfdad94ce197f Mon Sep 17 00:00:00 2001 From: ayou <550244300@qq.com> Date: Thu, 28 Aug 2025 22:58:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20=E5=B0=86=20BrowserRouter?= =?UTF-8?q?=20=E6=9B=BF=E6=8D=A2=E4=B8=BA=20HashRouter=20=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=9D=99=E6=80=81=E6=96=87=E4=BB=B6=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/main.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index fea8390..5578c68 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -1,12 +1,12 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import { BrowserRouter } from 'react-router-dom' +import { HashRouter } from 'react-router-dom' import App from './App' import 'antd/dist/reset.css' import './styles/global.css' ReactDOM.createRoot(document.getElementById('root')!).render( - + - + ) \ No newline at end of file