Skip to content

Commit

Permalink
chore: use HashRouter replace BrowserRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
w2xi committed Oct 6, 2024
1 parent 2682004 commit 86a35b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Suspense } from 'react'
import { BrowserRouter } from 'react-router-dom'
import { HashRouter } from 'react-router-dom'
import { Spin, ConfigProvider, theme as antTheme } from 'antd'
import { IntlProvider } from 'react-intl'
import enUS from 'antd/es/locale/en_US'
Expand Down Expand Up @@ -28,7 +28,7 @@ function App() {
}}
>
<IntlProvider locale={locale.split('_')[0]} messages={localeConfig[locale]}>
<BrowserRouter>
<HashRouter>
<Suspense fallback={null}>
<Spin
className="app-loading-wrapper"
Expand All @@ -41,7 +41,7 @@ function App() {
<RenderRouter />
</RouteGuard>
</Suspense>
</BrowserRouter>
</HashRouter>
</IntlProvider>
</ConfigProvider>
)
Expand Down

0 comments on commit 86a35b5

Please sign in to comment.