/** @format */ import { FunctionComponent, Suspense } from "react"; import { CheckCard, ProCard } from "@ant-design/pro-components"; import styles from "./index.module.less"; import { Outlet, useNavigate } from "react-router-dom"; import { Button, Empty } from "antd"; import StorageIcon from "@/constant/stroage-icon.ts"; import { ReloadOutlined } from "@ant-design/icons"; const Bucket: FunctionComponent = () => { const navigate = useNavigate(); const checkList = ["minio", "ali", "tencent", "huawei", "baidu", "jd"]; return (
}>} title="存储商" headerBordered className={styles.proCard} boxShadow={true} colSpan={"100%"} bordered>
{checkList.map((item) => { return ( { navigate(`/main/bucket/${item}`); }} /> ); })}
{location.pathname === "/main/bucket" || location.pathname === "/main/bucket/" ? ( <>
) : ( <> )}
); }; export default Bucket;