From b96c10ae1b821654da260a85a376a0624b7965aa Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 7 May 2024 15:31:58 +0800 Subject: [PATCH] site: rm Menu children (#48799) --- .dumi/theme/slots/Header/Navigation.tsx | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.dumi/theme/slots/Header/Navigation.tsx b/.dumi/theme/slots/Header/Navigation.tsx index 0459828691..6b50257b58 100644 --- a/.dumi/theme/slots/Header/Navigation.tsx +++ b/.dumi/theme/slots/Header/Navigation.tsx @@ -124,7 +124,7 @@ const HeaderNavigation: React.FC = (props) => { activeMenuItem = 'docs/resources'; } - let additional: MenuProps['items']; + let additional: MenuProps['items'] = []; const additionalItems: MenuProps['items'] = [ { @@ -215,30 +215,12 @@ const HeaderNavigation: React.FC = (props) => { }, isZhCN ? { + key: 'mirror', label: ( 国内镜像 ), - key: 'mirror', - children: [ - { - label: ( - - 官方镜像 - - ), - icon: ( - logo - ), - key: 'antgroup', - }, - ], } : null, ...(additional ?? []),