|
@@ -6,7 +6,6 @@ import ptBR from "antd-mobile/es/locales/pt-BR";
|
|
|
import { ThemeProviderProps } from "next-themes/dist/types";
|
|
|
import { ReactNode, useEffect, useState } from "react";
|
|
|
|
|
|
-import { usePathname } from "@/i18n/routing";
|
|
|
import { server } from "@/utils/client";
|
|
|
import { useDebounceEffect, useRequest } from "ahooks";
|
|
|
import clsx from "clsx";
|
|
@@ -25,7 +24,6 @@ import { useGlobalNoticeStore } from "@/stores/useGlobalNoticeStore";
|
|
|
import { getToken as getUserToken } from "@/utils/Cookies";
|
|
|
|
|
|
import { PromotionRep } from "@/api/home";
|
|
|
-import feedback from "@/feedback";
|
|
|
|
|
|
import { PollingState, usePollingStore } from "@/stores/usePollingStore";
|
|
|
import { useSuspensionStore } from "@/stores/useSuspensionStore";
|
|
@@ -365,36 +363,7 @@ export default function SidebarLayout({ children, themeProps }: ProvidersProps)
|
|
|
isCollapse: state.isCollapse,
|
|
|
setCollapse: state.setCollapse,
|
|
|
}));
|
|
|
- const [popData, setPopData] = useState<PromotionRep[]>([]);
|
|
|
- const pathname = usePathname();
|
|
|
- useEffect(() => {
|
|
|
- if (feedback.hasShowDialog()) {
|
|
|
- feedback.hideDialog();
|
|
|
- }
|
|
|
- if (pathname !== "/") {
|
|
|
- setPopData([]);
|
|
|
- return;
|
|
|
- }
|
|
|
- }, [pathname]);
|
|
|
-
|
|
|
- // const doShowProxyCheck = async () => {
|
|
|
- // const showProxy = sessionStorage.getItem("ShowProxy");
|
|
|
- // if (!showProxy) {
|
|
|
- // await feedback.showModal({
|
|
|
- // content: <Agent step={1}></Agent>,
|
|
|
- // width: "90%",
|
|
|
- // useDefaultFooter: false,
|
|
|
- // suffix: <AgentSuffix></AgentSuffix>,
|
|
|
- // });
|
|
|
- // await feedback.showModal({
|
|
|
- // content: <Agent step={2}></Agent>,
|
|
|
- // width: "90%",
|
|
|
- // useDefaultFooter: false,
|
|
|
- // suffix: <AgentSuffix></AgentSuffix>,
|
|
|
- // });
|
|
|
- // sessionStorage.setItem("ShowProxy", "1");
|
|
|
- // }
|
|
|
- // };
|
|
|
+
|
|
|
return (
|
|
|
<div id={"app"} className="relative h-[100%] overflow-hidden">
|
|
|
<motion.div
|