From 6087330a4ffac2a5042a63da36ccdb0887523e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Thu, 28 Aug 2025 16:45:12 +0800 Subject: [PATCH] usePathname --- components/layout/top-bar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/top-bar.tsx b/components/layout/top-bar.tsx index 102a0da..e612a55 100644 --- a/components/layout/top-bar.tsx +++ b/components/layout/top-bar.tsx @@ -15,7 +15,7 @@ import { } from 'lucide-react'; import { motion } from 'framer-motion'; import ReactDOM from 'react-dom'; -import { useRouter } from 'next/navigation'; +import { useRouter, usePathname } from 'next/navigation'; import React, { useRef, useEffect, useLayoutEffect, useState } from 'react'; import { logoutUser } from '@/lib/auth'; import { showQueueNotification } from '@/components/QueueBox/QueueNotification2';