Skip to content

Commit 402cf23

Browse files
committed
fix: 修正路由问题
1 parent 65eceac commit 402cf23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { AppBar, Toolbar, Container } from '@mui/material';
77

88
export default function App() {
99
return (
10-
<Router>
10+
<Router basename="/ai-coding-prompt-builder">
1111
<AppBar position="static">
1212
<Toolbar>
1313
<Link to="/" style={{ textDecoration: 'none', color: 'white', marginRight: 20 }}>
@@ -26,7 +26,7 @@ export default function App() {
2626
<Routes>
2727
<Route path="/" element={<Home />} />
2828
{/*<Route path="/profiles" element={<ProfileList />} />*/}
29-
<Route path="/profile/:id" element={<Home />} />
29+
{/*<Route path="/profile/:id" element={<Home />} />*/}
3030
<Route path="/about" element={<About />} />
3131
</Routes>
3232
</Container>

0 commit comments

Comments
 (0)