diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx index 4011dd9743d82f48ecd7159f9dacd8a38a021995..09c9f218580f8c082243c40bc703a40881c5ef7b 100644 --- a/src/pages/_layout.tsx +++ b/src/pages/_layout.tsx @@ -125,13 +125,19 @@ const Layout = () => { )} <div className="the-content"> - <BaseErrorBoundary> - <Routes> - {routers.map(({ label, link, ele: Ele }) => ( - <Route key={label} path={link} element={<Ele />} /> - ))} - </Routes> - </BaseErrorBoundary> + <Routes> + {routers.map(({ label, link, ele: Ele }) => ( + <Route + key={label} + path={link} + element={ + <BaseErrorBoundary key={label}> + <Ele /> + </BaseErrorBoundary> + } + /> + ))} + </Routes> </div> </div> </Paper>