From b2d3aa82fcb98385c30f0adc8e36f88690bd61e9 Mon Sep 17 00:00:00 2001 From: Respirayson Date: Sat, 9 Mar 2024 02:49:25 +0800 Subject: [PATCH] Change BrowserRouter to HashRouter --- src/main.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.jsx b/src/main.jsx index 5f5ce4a..1a92a1f 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -2,14 +2,12 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import App from './App.jsx'; import './index.css'; -import { BrowserRouter } from 'react-router-dom'; +import { HashRouter } from 'react-router-dom'; ReactDOM.createRoot(document.getElementById('root')).render( - + - + , );