From 1df7f447cd0a392ebe6ec56dbdf3023cd8c680a9 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 18 Apr 2025 17:34:36 +0800 Subject: [PATCH] . --- components/utility/global-state.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/utility/global-state.tsx b/components/utility/global-state.tsx index 369ab7e..cd0ab6b 100644 --- a/components/utility/global-state.tsx +++ b/components/utility/global-state.tsx @@ -36,6 +36,7 @@ interface GlobalStateProps { export const GlobalState: FC = ({ children }) => { const router = useRouter() + const pathname = usePathname() // 获取当前路径 // PROFILE STORE const [profile, setProfile] = useState | null>(null)