remove incorrect setupCloseListener from _layout.tsx (#4818)

This commit is contained in:
infinite-illusion
2025-09-21 15:05:37 +08:00
committed by GitHub
Unverified
parent 8f88270cdf
commit fef2728a7c

View File

@@ -170,7 +170,7 @@ const Layout = () => {
const navigate = useNavigate();
const location = useLocation();
const routersEles = useRoutes(routers);
const { addListener, setupCloseListener } = useListen();
const { addListener } = useListen();
const initRef = useRef(false);
const [themeReady, setThemeReady] = useState(false);
@@ -238,7 +238,6 @@ const Layout = () => {
};
};
setupCloseListener();
const cleanupWindow = setupWindowListeners();
return () => {