import { Result } from "antd"; import { useEffect, useRef } from "react"; export default function NotFound() { const timeRef = useRef(-1); useEffect(() => { timeRef.current = window.setTimeout(() => { const dom: HTMLDivElement = document.querySelector(".noFindPage")!; dom.style.opacity = "1"; }, 300); return () => { clearTimeout(timeRef.current); }; }, []); return (
); }