|
@@ -131,7 +131,7 @@ const Nav : React.FC<Props> = ( props : Props ) => {
|
|
|
icon: <ReadOutlined />,
|
|
icon: <ReadOutlined />,
|
|
|
label: '帮助文档',
|
|
label: '帮助文档',
|
|
|
onClick: () => {
|
|
onClick: () => {
|
|
|
- router.navigate( { pathname: '/help/guide/overview' } )
|
|
|
|
|
|
|
+ window.open('/help/guide/overview', '_blank')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
@@ -156,6 +156,10 @@ const Nav : React.FC<Props> = ( props : Props ) => {
|
|
|
mode='inline'
|
|
mode='inline'
|
|
|
selectedKeys={ [ selectedKey ] }
|
|
selectedKeys={ [ selectedKey ] }
|
|
|
onSelect={ ( item ) => {
|
|
onSelect={ ( item ) => {
|
|
|
|
|
+ if ( String(item.key).startsWith('/help') ) {
|
|
|
|
|
+ // External help opens in new tab; do not change selectedKey or navigate current tab
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
const menuLevel = item.keyPath.length > 1 ? 2 : 1;
|
|
const menuLevel = item.keyPath.length > 1 ? 2 : 1;
|
|
|
onChangeSelectedKey( item.key, menuLevel );
|
|
onChangeSelectedKey( item.key, menuLevel );
|
|
|
} }
|
|
} }
|