Skip to content
Snippets Groups Projects
Commit a6db817d authored by yms's avatar yms
Browse files

test

parent acd48e32
Branches
Tags
Loading
......@@ -7,24 +7,24 @@ import Root from "./root";
const router = createBrowserRouter([
{
path: "/",
path: "/approval",
element: <Root></Root>,
children: [
{
path: "/apply",
path: "/approval/apply",
element: <UserMain />,
},
{
path: "/apply-record",
path: "/approval/apply-record",
element: <ReviewProcess />,
},
{
path: "/management",
path: "/approval/management",
element: <ManagementMain />,
},
{
path: "/management/:thingId",
path: "/approval/management/:thingId",
element: <PendingReviewList />,
},
],
......
......@@ -36,7 +36,9 @@ const Root = () => {
return (
<>
{location.pathname === "/" && <Navigate replace to="/apply" />}
{location.pathname === "/approval" && (
<Navigate replace to="/approval/apply" />
)}
<Outlet></Outlet>
</>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment