fix: replace browser router with hash router
This commit is contained in:
parent
a8a2d3dbf3
commit
51bd5a4d5e
@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { Provider } from 'react-redux'
|
||||
import { BrowserRouter } from 'react-router-dom'
|
||||
import { HashRouter } from 'react-router-dom'
|
||||
import { ToastContainer } from 'react-toastify'
|
||||
import 'react-toastify/dist/ReactToastify.css'
|
||||
import App from './App.tsx'
|
||||
@ -11,10 +11,10 @@ import { store } from './store/index.ts'
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<HashRouter>
|
||||
<App />
|
||||
<ToastContainer />
|
||||
</BrowserRouter>
|
||||
</HashRouter>
|
||||
</Provider>
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user