Skip to content

Commit

Permalink
fix: use hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
joekiller committed Jul 8, 2024
1 parent 3586c76 commit d89527d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions example-web/react2/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import { HashRouter as Router, Routes, Route } from "react-router-dom";
import HomePage from "./components/HomePage";
import Header from "./components/Header";
import CollectionsIndex from "./components/CollectionsIndex";
Expand All @@ -9,19 +9,13 @@ import Footer from "./components/Footer";

const App: React.FC = () => {
return (
<Router basename="/node-ps99-api">
<Router>
<Header />
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/collections" element={<CollectionsIndex />} />
<Route
path="/collections/:collectionName"
element={<CollectionConfigIndex />}
/>
<Route
path="/collections/:collectionName/:configName"
element={<DynamicCollectionConfigData />}
/>
<Route path="/collections/:collectionName" element={<CollectionConfigIndex />} />
<Route path="/collections/:collectionName/:configName" element={<DynamicCollectionConfigData />} />
</Routes>
<Footer />
</Router>
Expand Down

0 comments on commit d89527d

Please sign in to comment.