feat(adminLayout): refactor route matching logic and improve breadcrumb handling

This commit is contained in:
shiyu
2025-06-06 21:27:20 +08:00
parent 40106095aa
commit 288e10a2d0
8 changed files with 176 additions and 228 deletions

View File

@@ -81,7 +81,7 @@ function App() {
{adminRoutes.map((route) => (
<Route
key={route.key}
path={route.path}
path={route.path === '' ? 'index' : route.path}
element={route.element}
/>
))}