From b41a317788f8b4d4b827f771d060c8619d0438d8 Mon Sep 17 00:00:00 2001 From: ljpark Date: Tue, 21 Jul 2026 17:59:15 +0900 Subject: [PATCH] =?UTF-8?q?wr:=20fo:=20sn:=20=EC=A7=80=EB=8F=84=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20session=20confirm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/fo/app/pages/(map-layout)/layout.tsx | 13 +++++++++++-- apps/sn/app/(map-layout)/layout.tsx | 2 ++ apps/wr/app/(map-layout)/layout.tsx | 10 +++++++++- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/apps/fo/app/pages/(map-layout)/layout.tsx b/apps/fo/app/pages/(map-layout)/layout.tsx index 9c45eabc8..11ca87e00 100644 --- a/apps/fo/app/pages/(map-layout)/layout.tsx +++ b/apps/fo/app/pages/(map-layout)/layout.tsx @@ -1,9 +1,10 @@ 'use client' import { NoFooterLayout } from "@common/components"; +import { useQueryClient } from "@tanstack/react-query"; import type { MenuItem } from "../../store/common"; import { useFoStore } from "../../store"; import { usePathname, useRouter } from "next/navigation"; -// import { authService } from "@/src/entities/auth"; +import { authService } from "@/src/entities/auth"; export default function RootLayout({ children, @@ -14,12 +15,20 @@ export default function RootLayout({ const { getMenuAuth } = useFoStore((state) => state); const pathname = usePathname(); const router = useRouter(); + const queryClient = useQueryClient(); const handleClick = (id: MenuItem) => { getMenuAuth(id.menuCd); router.push(id.urlPath); }; return ( - {children} + + {children} + ); } diff --git a/apps/sn/app/(map-layout)/layout.tsx b/apps/sn/app/(map-layout)/layout.tsx index f840fa131..40565fb97 100644 --- a/apps/sn/app/(map-layout)/layout.tsx +++ b/apps/sn/app/(map-layout)/layout.tsx @@ -20,6 +20,7 @@ import { NoFooterLayout } from "@common/components"; import type { MenuItem } from "@/entities/menu"; import { useMenuStore } from "@/shared/lib"; import useStore from '../store/useStore'; +import { authService } from "@/entities/auth"; export default function MapLayout({ children, @@ -57,6 +58,7 @@ export default function MapLayout({ return ( diff --git a/apps/wr/app/(map-layout)/layout.tsx b/apps/wr/app/(map-layout)/layout.tsx index b6f52c19c..ee7321d7b 100644 --- a/apps/wr/app/(map-layout)/layout.tsx +++ b/apps/wr/app/(map-layout)/layout.tsx @@ -1,9 +1,11 @@ "use client"; import type { MenuItem } from "@common/components/api"; import { NoFooterLayout } from "@common/components/ui"; +import { useQueryClient } from "@tanstack/react-query"; import { usePathname,useRouter } from "next/navigation"; import { useMenuStore } from "@/src/shared/lib"; import { useWrStore } from "../store"; +import { authService } from "@/src/entities/auth"; export default function MapLayout({ children, @@ -14,6 +16,7 @@ export default function MapLayout({ const setCurrentMenuInfo = useMenuStore((state) => state.setCurrentMenuInfo); const router = useRouter(); const pathname = usePathname(); + const queryClient = useQueryClient(); const changeMenu = (path: MenuItem) => { setCurrentMenuInfo(path); @@ -21,7 +24,12 @@ export default function MapLayout({ router.push(path.urlPath); }; return ( - + {children} );