Skip to content

Commit c47dfa0

Browse files
committed
website: modify hash router.
1 parent 74b5f74 commit c47dfa0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { BrowserRouter, Routes, Route } from 'react-router-dom';
1+
import { HashRouter, Routes, Route } from 'react-router-dom';
22
import { Layout } from './Layout';
33
import { HomePage } from './pages/docs';
44
import { ExamplePage } from './pages/example';
55

66
export default function App() {
77
return (
8-
<BrowserRouter>
8+
<HashRouter>
99
<Routes>
1010
<Route element={<Layout />}>
1111
<Route path="/" element={<HomePage />} />
1212
<Route path="/example" element={<ExamplePage />} />
1313
</Route>
1414
</Routes>
15-
</BrowserRouter>
15+
</HashRouter>
1616
);
1717
}

0 commit comments

Comments
 (0)