handleMenuGroupClick(item.key)}
- >
- {/* 一级菜单 */}
- {item.icon}{item.label}
- {/* 一级菜单的下拉按钮 */}
- {!collapsed && (
-
- )}
-
- {item.children && openKeys.includes(item.key) && (
-
- {item.children.map(child => {
- // 智能对话页面
- if (child.key === '/topnavbar00/aiqa/conversation') {
- return (
-
-
{
- toggleExpand('conversation')
- setRouteActive(child)
-
- }}
- >
-
-
- {child.icon}{child.label}
- {/* */}
-
- {conversationExpanded &&
- renderPageContent('conversation',
- conversationConversations, conversationExpanded,
- )}
-
- )
- }
- // 智能写作页面
- if (child.key === '/topnavbar00/aiqa/writing') {
- return (
-
-
{
- toggleExpand('writing')
- setRouteActive(child)
- }}
- >
-
-
- {child.icon}{child.label}
- {/* */}
-
- {writingExpanded && renderPageContent('writing',
- writingConversations, writingExpanded,)}
-
- )
- }
- // 智能助理页面
- if (child.key === '/topnavbar00/aiqa/assistant') {
- return (
-
-
{
- toggleExpand('assistant')
- setRouteActive(child)
- }}
- >
-
-
- {child.icon}{child.label}
- {/* */}
-
- {assistantExpanded && renderPageContent('assistant',
- assistantConversations, assistantExpanded,)}
-
- )
- }
- // 数据分析页面
- if (child.key === '/topnavbar00/aiqa/dataanalysis') {
- return (
-
-
{
- toggleExpand('dataanalysis')
- setRouteActive(child)
- }}
- >
-
-
- {child.icon}{child.label}
- {/* */}
-
- {dataAnalysisExpanded && renderPageContent('dataanalysis', dataAnalysisConversations,
- dataAnalysisExpanded,)}
-
- )
- }
- // 问答移动端页面
- if (child.key === '/topnavbar00/aiqa/mobile') {
- return (
-
-
{
- toggleExpand('mobile')
- setRouteActive(child)
- setCollapsed(true) // 直接收起
- }}
- >
-
-
- {child.icon}{child.label}
- {/* */}
-
- {mobileExpanded && renderPageContent('mobile', mobileConversations,
- mobileExpanded,)}
-
- )
- }
- // 系统管理内部页面
- return (
-
setRouteActive(child)}
- >
- {child.icon}{child.label}
-
- )
- })}
-