Update 404 page

This commit is contained in:
2024-06-13 04:29:58 +00:00
parent ae5fd1102b
commit 3862aa4e22
10 changed files with 80 additions and 40 deletions

View File

@ -14,13 +14,15 @@ render(
<Route path="/login" component={lazy(() => import('@pages/Login'))} />
<Route path="/" component={Layout}>
<For each={ROUTES}>
{(route) => (
<Route
path={route.path}
component={route.components}
matchFilters={route.filter}
/>
)}
{(route) =>
route.show && (
<Route
path={route.path}
component={route.components}
matchFilters={route.filter}
/>
)
}
</For>
</Route>
<Route path="*" component={lazy(() => import('@pages/NotFound'))} />