diff --git a/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx b/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx index b32990be..3a525ed1 100644 --- a/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx +++ b/packages/canyon-platform/src/components/old-ui/components/layout/Base.tsx @@ -1,4 +1,4 @@ -import { MoreOutlined, SearchOutlined } from "@ant-design/icons"; +import {BarChartOutlined, LinkOutlined, MoreOutlined, SearchOutlined} from "@ant-design/icons"; import { FC, ReactNode } from "react"; import { ErrorBoundary } from "react-error-boundary"; import { CanyonCardPrimary } from "../card"; @@ -139,11 +139,22 @@ const CanyonLayoutBase: FC = ({ onSelectMenu?.(selectInfo); }} selectedKeys={[menuSelectedKey]} - items={menuItems} + items={menuItems.concat({ + key: "open-reports", + icon: , + label: ( + + 报表 + + ), + })} className={"dark:bg-[#151718] px-1"} style={{ flex: "1" }} /> - , }, - { - label: t("报表"), - key: "reports", - icon: , - }, + // { + // label: t("报表"), + // key: "reports", + // icon: , + // }, { label: t("menus.settings"), key: "settings", diff --git a/packages/canyon-platform/src/pages/index/reports.tsx b/packages/canyon-platform/src/pages/index/reports.tsx index f1dfe8b9..14435aeb 100644 --- a/packages/canyon-platform/src/pages/index/reports.tsx +++ b/packages/canyon-platform/src/pages/index/reports.tsx @@ -148,6 +148,7 @@ const Reports = () => { buttonStyle="solid" />