|
@@ -11,7 +11,6 @@ import { server } from "@/utils/client";
|
|
import clsx from "clsx";
|
|
import clsx from "clsx";
|
|
import { useLocale } from "next-intl";
|
|
import { useLocale } from "next-intl";
|
|
import Image from "next/image";
|
|
import Image from "next/image";
|
|
-import Router from "next/router";
|
|
|
|
import React, { FC, PropsWithChildren, useEffect, useMemo, useRef, useState } from "react";
|
|
import React, { FC, PropsWithChildren, useEffect, useMemo, useRef, useState } from "react";
|
|
import styles from "./style.module.scss";
|
|
import styles from "./style.module.scss";
|
|
|
|
|
|
@@ -98,14 +97,18 @@ const Sidebar: FC<PropsWithChildren<Props>> = (props) => {
|
|
);
|
|
);
|
|
|
|
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
- Router.events.on("routeChangeComplete", () => {
|
|
|
|
- console.log(99990);
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
+ console.log(pathname);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- Router.events.emit("routeChangeComplete");
|
|
|
|
- }, 10000);
|
|
|
|
- }, []);
|
|
|
|
|
|
+ const dom: any = document.querySelector("#globalMask");
|
|
|
|
+ if (dom) dom.style.display = "none";
|
|
|
|
+ }, 500);
|
|
|
|
+ // Router.events.on("routeChangeComplete", () => {
|
|
|
|
+ // console.log(99990);
|
|
|
|
+ // });
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // Router.events.emit("routeChangeComplete");
|
|
|
|
+ // }, 10000);
|
|
|
|
+ }, [pathname]);
|
|
|
|
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
if (!providers || providers.length === 0) {
|
|
if (!providers || providers.length === 0) {
|