feat: Revamp conversation configuration management and enhance localization
- Removed outdated DEVELOPMENT.md, consolidating development instructions into relevant documentation. - Updated conversation configuration to include new parameters such as max rounds, embedding thresholds, and rewrite prompts. - Enhanced UI components to support new conversation settings, including AgentSettings.vue and related views. - Improved localization in English, Russian, and Chinese for new conversation configuration fields and UI elements. - Implemented logic to apply tenant-specific conversation settings, ensuring defaults are respected.
This commit is contained in:
@@ -43,6 +43,22 @@ export interface ConversationConfig {
|
||||
context_template: string
|
||||
temperature: number
|
||||
max_tokens: number
|
||||
use_custom_system_prompt?: boolean
|
||||
use_custom_context_template?: boolean
|
||||
max_rounds: number
|
||||
embedding_top_k: number
|
||||
keyword_threshold: number
|
||||
vector_threshold: number
|
||||
rerank_top_k: number
|
||||
rerank_threshold: number
|
||||
enable_rewrite: boolean
|
||||
fallback_strategy: string
|
||||
fallback_response: string
|
||||
fallback_prompt?: string
|
||||
summary_model_id?: string
|
||||
rerank_model_id?: string
|
||||
rewrite_prompt_system?: string
|
||||
rewrite_prompt_user?: string
|
||||
}
|
||||
|
||||
export function getSystemInfo(): Promise<{ data: SystemInfo }> {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div v-if="menuVisible" class="user-dropdown" @click.stop>
|
||||
<div class="menu-item" @click="handleQuickNav('models')">
|
||||
<t-icon name="control-platform" class="menu-icon" />
|
||||
<span>{{ $t('settings.modelConfig') }}</span>
|
||||
<span>{{ $t('settings.modelManagement') }}</span>
|
||||
</div>
|
||||
<div class="menu-item" @click="handleQuickNav('ollama')">
|
||||
<t-icon name="server" class="menu-icon" />
|
||||
|
||||
@@ -152,8 +152,10 @@ export default {
|
||||
settings: {
|
||||
title: 'Settings',
|
||||
modelConfig: 'Model Settings',
|
||||
modelManagement: 'Model Management',
|
||||
agentConfig: 'Agent Settings',
|
||||
conversationConfig: 'Conversation Settings',
|
||||
conversationStrategy: 'Conversation Strategy',
|
||||
webSearchConfig: 'Web Search',
|
||||
mcpService: 'MCP Service',
|
||||
systemSettings: 'System Settings',
|
||||
@@ -833,8 +835,8 @@ export default {
|
||||
title: 'Model Configuration',
|
||||
description: 'Select appropriate AI models for the knowledge base',
|
||||
llmLabel: 'LLM Model',
|
||||
llmDesc: 'Large language model used for conversations and Q&A',
|
||||
llmPlaceholder: 'Select an LLM model',
|
||||
llmDesc: 'Large language model used for summarization and abstract generation (optional)',
|
||||
llmPlaceholder: 'Select an LLM model (optional)',
|
||||
embeddingLabel: 'Embedding Model',
|
||||
embeddingDesc: 'Embedding model used for text vectorization',
|
||||
embeddingPlaceholder: 'Select an embedding model',
|
||||
@@ -1368,18 +1370,107 @@ export default {
|
||||
}
|
||||
},
|
||||
conversationSettings: {
|
||||
description: 'Configure default behavior and parameters for conversation modes, including Prompt settings for Agent mode and normal mode',
|
||||
description: 'Configure default behavior and parameters for conversation modes, including prompts for Agent and normal modes',
|
||||
agentMode: 'Agent Mode',
|
||||
normalMode: 'Normal Mode',
|
||||
menus: {
|
||||
modes: 'Mode Settings',
|
||||
models: 'Model Mapping',
|
||||
thresholds: 'Retrieval Thresholds',
|
||||
advanced: 'Advanced Settings'
|
||||
},
|
||||
models: {
|
||||
description: 'Manage thinking/chat models and re-rank models for both Agent and normal modes',
|
||||
chatGroupLabel: 'Thinking / Chat Models',
|
||||
chatGroupDesc: 'Includes Agent reasoning/planning model and the default chat/summary model for normal mode',
|
||||
chatModel: {
|
||||
label: 'Default chat model (normal mode)',
|
||||
desc: 'Used when a conversation does not specify its own model',
|
||||
placeholder: 'Select default chat model'
|
||||
},
|
||||
rerankModel: {
|
||||
label: 'Default ReRank model (normal mode)',
|
||||
desc: 'Used for re-ranking when a session does not override it',
|
||||
placeholder: 'Select default rerank model'
|
||||
},
|
||||
rerankGroupLabel: 'ReRank Models',
|
||||
rerankGroupDesc: 'Includes Agent rerank model and the default rerank model for normal mode'
|
||||
},
|
||||
thresholds: {
|
||||
description: 'Tune retrieval and re-ranking thresholds to balance accuracy and performance'
|
||||
},
|
||||
maxRounds: {
|
||||
label: 'History Rounds',
|
||||
desc: 'Number of rounds kept for context and query rewrite'
|
||||
},
|
||||
embeddingTopK: {
|
||||
label: 'Embedding TopK',
|
||||
desc: 'Number of documents kept after vector retrieval'
|
||||
},
|
||||
keywordThreshold: {
|
||||
label: 'Keyword Threshold',
|
||||
desc: 'Minimum score for keyword retrieval'
|
||||
},
|
||||
vectorThreshold: {
|
||||
label: 'Vector Threshold',
|
||||
desc: 'Minimum similarity for vector retrieval'
|
||||
},
|
||||
rerankTopK: {
|
||||
label: 'ReRank TopK',
|
||||
desc: 'Documents kept after re-ranking'
|
||||
},
|
||||
rerankThreshold: {
|
||||
label: 'ReRank Threshold',
|
||||
desc: 'Minimum score required after re-ranking'
|
||||
},
|
||||
enableRewrite: {
|
||||
label: 'Enable Query Rewrite',
|
||||
desc: 'Automatically rewrite multi-turn queries for better recall'
|
||||
},
|
||||
fallbackStrategy: {
|
||||
label: 'Fallback Strategy',
|
||||
desc: 'How to respond when no relevant documents are found',
|
||||
fixed: 'Fixed response',
|
||||
model: 'Let the model continue answering'
|
||||
},
|
||||
fallbackResponse: {
|
||||
label: 'Fixed fallback response',
|
||||
desc: 'Text returned when using the fixed fallback strategy'
|
||||
},
|
||||
fallbackPrompt: {
|
||||
label: 'Fallback Prompt',
|
||||
desc: 'Prompt used when fallback strategy is “model”'
|
||||
},
|
||||
advanced: {
|
||||
description: 'Configure query rewrite, fallback strategy and other advanced settings'
|
||||
},
|
||||
rewritePrompt: {
|
||||
system: 'Rewrite System Prompt',
|
||||
user: 'Rewrite User Prompt',
|
||||
desc: 'System prompt used during query rewrite',
|
||||
userDesc: 'User prompt used during query rewrite'
|
||||
},
|
||||
chatModel: {
|
||||
label: 'LLM Model',
|
||||
desc: 'Large language model used for summarization and abstract generation'
|
||||
},
|
||||
rerankModel: {
|
||||
label: 'ReRank Model',
|
||||
desc: 'Model for re-ranking search results (optional)'
|
||||
},
|
||||
contextTemplate: {
|
||||
label: 'Retrieval Result Summary Prompt',
|
||||
desc: 'Prompt template for generating answers based on retrieval results in normal mode',
|
||||
placeholder: 'Enter the prompt template for retrieval result summary...'
|
||||
placeholder: 'Enter the prompt template for retrieval result summary...',
|
||||
custom: 'Custom template',
|
||||
disabledHint: 'Currently using the default summary prompt. Enable custom to edit below.'
|
||||
},
|
||||
systemPrompt: {
|
||||
label: 'System Prompt',
|
||||
desc: 'System-level prompt for normal mode conversations',
|
||||
placeholder: 'Enter the system prompt...'
|
||||
placeholder: 'Enter the system prompt...',
|
||||
custom: 'Custom prompt',
|
||||
disabledHint: 'Currently using the default prompt. Enable custom to edit below.'
|
||||
},
|
||||
temperature: {
|
||||
label: 'Temperature',
|
||||
@@ -1389,11 +1480,39 @@ export default {
|
||||
label: 'Max Tokens',
|
||||
desc: 'Maximum number of tokens to generate in the response'
|
||||
},
|
||||
resetSystemPrompt: {
|
||||
header: 'Reset to Default System Prompt',
|
||||
body: 'Are you sure you want to reset to the default system prompt?'
|
||||
},
|
||||
resetContextTemplate: {
|
||||
header: 'Reset to Default Summary Prompt',
|
||||
body: 'Are you sure you want to reset to the default summary prompt?'
|
||||
},
|
||||
toasts: {
|
||||
chatModelSaved: 'LLM model saved',
|
||||
rerankModelSaved: 'ReRank model saved',
|
||||
contextTemplateSaved: 'Retrieval result summary prompt saved',
|
||||
systemPromptSaved: 'System prompt saved',
|
||||
temperatureSaved: 'Temperature saved',
|
||||
maxTokensSaved: 'Max tokens saved'
|
||||
maxTokensSaved: 'Max tokens saved',
|
||||
maxRoundsSaved: 'History rounds saved',
|
||||
embeddingSaved: 'Embedding TopK saved',
|
||||
keywordThresholdSaved: 'Keyword threshold saved',
|
||||
vectorThresholdSaved: 'Vector threshold saved',
|
||||
rerankTopKSaved: 'ReRank TopK saved',
|
||||
rerankThresholdSaved: 'ReRank threshold saved',
|
||||
enableRewriteSaved: 'Query rewrite preference saved',
|
||||
fallbackStrategySaved: 'Fallback strategy saved',
|
||||
fallbackResponseSaved: 'Fallback response saved',
|
||||
fallbackPromptSaved: 'Fallback prompt saved',
|
||||
rewritePromptSystemSaved: 'Rewrite system prompt saved',
|
||||
rewritePromptUserSaved: 'Rewrite user prompt saved',
|
||||
customPromptEnabled: 'Custom prompt enabled',
|
||||
defaultPromptEnabled: 'Using default prompt',
|
||||
customContextTemplateEnabled: 'Custom summary prompt enabled',
|
||||
defaultContextTemplateEnabled: 'Using default summary prompt',
|
||||
resetSystemPromptSuccess: 'Reset to default system prompt',
|
||||
resetContextTemplateSuccess: 'Reset to default summary prompt'
|
||||
}
|
||||
},
|
||||
// New: MCP Settings
|
||||
|
||||
@@ -151,9 +151,12 @@ export default {
|
||||
settings: {
|
||||
title: 'Настройки',
|
||||
modelConfig: 'Настройки модели',
|
||||
modelManagement: 'Управление моделями',
|
||||
agentConfig: 'Настройки агента',
|
||||
webSearchConfig: 'Сетевой поиск',
|
||||
mcpService: 'Сервис MCP',
|
||||
conversationConfig: 'Настройки диалога',
|
||||
conversationStrategy: 'Стратегия диалога',
|
||||
systemSettings: 'Настройки системы',
|
||||
tenantInfo: 'Информация о арендаторе',
|
||||
apiInfo: 'Информация API',
|
||||
|
||||
@@ -243,8 +243,10 @@ export default {
|
||||
settings: {
|
||||
title: "设置",
|
||||
modelConfig: "模型配置",
|
||||
modelManagement: "模型管理",
|
||||
agentConfig: "Agent配置",
|
||||
conversationConfig: "对话设置",
|
||||
conversationStrategy: "对话策略",
|
||||
webSearchConfig: "网络搜索",
|
||||
mcpService: "MCP服务",
|
||||
systemSettings: "系统设置",
|
||||
@@ -1156,8 +1158,8 @@ export default {
|
||||
title: "模型配置",
|
||||
description: "为知识库选择合适的 AI 模型",
|
||||
llmLabel: "LLM 大语言模型",
|
||||
llmDesc: "用于对话和问答的大语言模型",
|
||||
llmPlaceholder: "请选择 LLM 模型",
|
||||
llmDesc: "用于总结和摘要的大语言模型(可选)",
|
||||
llmPlaceholder: "请选择 LLM 模型(可选)",
|
||||
embeddingLabel: "Embedding 嵌入模型",
|
||||
embeddingDesc: "用于文本向量化的嵌入模型",
|
||||
embeddingPlaceholder: "请选择 Embedding 模型",
|
||||
@@ -1375,15 +1377,104 @@ export default {
|
||||
description: "配置对话模式的默认行为和参数,包括Agent模式和普通模式的Prompt设置",
|
||||
agentMode: "Agent模式",
|
||||
normalMode: "普通模式",
|
||||
menus: {
|
||||
modes: "模式设置",
|
||||
models: "模型配置",
|
||||
thresholds: "检索阈值",
|
||||
advanced: "高级设置",
|
||||
},
|
||||
models: {
|
||||
description: "统一管理 Agent 和普通模式使用的对话/总结模型与 ReRank 模型",
|
||||
chatGroupLabel: "思考 / 对话模型",
|
||||
chatGroupDesc: "包含 Agent 推理与规划模型,以及普通模式默认的对话/总结模型",
|
||||
chatModel: {
|
||||
label: "普通模式默认对话模型",
|
||||
desc: "普通模式默认使用的对话/总结模型,当会话未指定模型时生效",
|
||||
placeholder: "请选择默认对话模型",
|
||||
},
|
||||
rerankModel: {
|
||||
label: "普通模式默认 ReRank 模型",
|
||||
desc: "普通模式默认使用的重排序模型",
|
||||
placeholder: "请选择默认 ReRank 模型",
|
||||
},
|
||||
rerankGroupLabel: "ReRank 模型",
|
||||
rerankGroupDesc: "包含 Agent 使用的重排序模型,以及普通模式默认 ReRank 模型",
|
||||
},
|
||||
thresholds: {
|
||||
description: "调整召回与重排序的阈值与 TopK,平衡准确率与性能",
|
||||
},
|
||||
maxRounds: {
|
||||
label: "历史保留轮数",
|
||||
desc: "用于多轮上下文和问题改写的历史轮数",
|
||||
},
|
||||
embeddingTopK: {
|
||||
label: "Embedding TopK",
|
||||
desc: "向量召回阶段保留的文档数量",
|
||||
},
|
||||
keywordThreshold: {
|
||||
label: "关键词阈值",
|
||||
desc: "关键词检索的最低得分阈值",
|
||||
},
|
||||
vectorThreshold: {
|
||||
label: "向量阈值",
|
||||
desc: "向量召回的最低相似度阈值",
|
||||
},
|
||||
rerankTopK: {
|
||||
label: "ReRank TopK",
|
||||
desc: "重排序后进入答案生成的文档数量",
|
||||
},
|
||||
rerankThreshold: {
|
||||
label: "ReRank 阈值",
|
||||
desc: "重排序阶段的最低得分阈值",
|
||||
},
|
||||
enableRewrite: {
|
||||
label: "开启问题改写",
|
||||
desc: "多轮对话自动改写问题以获得更优召回",
|
||||
},
|
||||
fallbackStrategy: {
|
||||
label: "兜底策略",
|
||||
desc: "检索无结果时采用的处理方式",
|
||||
fixed: "固定回复",
|
||||
model: "交给模型继续生成",
|
||||
},
|
||||
fallbackResponse: {
|
||||
label: "固定兜底回复",
|
||||
desc: "当兜底策略为固定回复时返回的文本",
|
||||
},
|
||||
fallbackPrompt: {
|
||||
label: "兜底 Prompt",
|
||||
desc: "当选择模型兜底时使用的提示模板",
|
||||
},
|
||||
advanced: {
|
||||
description: "配置问题改写、兜底策略等高级设置",
|
||||
},
|
||||
rewritePrompt: {
|
||||
system: "Rewrite System Prompt",
|
||||
user: "Rewrite User Prompt",
|
||||
desc: "控制问题改写的系统提示词",
|
||||
userDesc: "控制问题改写的用户提示词",
|
||||
},
|
||||
chatModel: {
|
||||
label: "LLM 模型",
|
||||
desc: "用于总结和摘要的大语言模型",
|
||||
},
|
||||
rerankModel: {
|
||||
label: "ReRank 模型",
|
||||
desc: "用于搜索结果重排序的模型(可选)",
|
||||
},
|
||||
contextTemplate: {
|
||||
label: "总结Prompt",
|
||||
desc: "用于普通模式下基于检索结果生成回答的Prompt模板",
|
||||
placeholder: "请输入检索结果总结的Prompt模板...",
|
||||
custom: "自定义模板",
|
||||
disabledHint: "当前使用系统默认总结 Prompt,开启自定义后才会应用下方内容。",
|
||||
},
|
||||
systemPrompt: {
|
||||
label: "系统Prompt",
|
||||
desc: "用于普通模式对话的系统级Prompt",
|
||||
placeholder: "请输入系统Prompt...",
|
||||
custom: "自定义 Prompt",
|
||||
disabledHint: "当前使用系统默认 Prompt,开启自定义后才会应用下方内容。",
|
||||
},
|
||||
temperature: {
|
||||
label: "温度参数",
|
||||
@@ -1393,11 +1484,39 @@ export default {
|
||||
label: "最大Token数",
|
||||
desc: "生成回答的最大Token数量",
|
||||
},
|
||||
resetSystemPrompt: {
|
||||
header: "恢复默认系统 Prompt",
|
||||
body: "确定要恢复为系统默认的系统 Prompt 吗?",
|
||||
},
|
||||
resetContextTemplate: {
|
||||
header: "恢复默认总结 Prompt",
|
||||
body: "确定要恢复为系统默认的总结 Prompt 吗?",
|
||||
},
|
||||
toasts: {
|
||||
chatModelSaved: "LLM 模型已保存",
|
||||
rerankModelSaved: "ReRank 模型已保存",
|
||||
contextTemplateSaved: "总结Prompt已保存",
|
||||
systemPromptSaved: "系统Prompt已保存",
|
||||
temperatureSaved: "温度参数已保存",
|
||||
maxTokensSaved: "最大Token数已保存",
|
||||
maxRoundsSaved: "历史轮数已保存",
|
||||
embeddingSaved: "Embedding TopK 已保存",
|
||||
keywordThresholdSaved: "关键词阈值已保存",
|
||||
vectorThresholdSaved: "向量阈值已保存",
|
||||
rerankTopKSaved: "ReRank TopK 已保存",
|
||||
rerankThresholdSaved: "ReRank 阈值已保存",
|
||||
enableRewriteSaved: "问题改写开关已保存",
|
||||
fallbackStrategySaved: "兜底策略已保存",
|
||||
fallbackResponseSaved: "兜底回复已保存",
|
||||
fallbackPromptSaved: "兜底 Prompt 已保存",
|
||||
rewritePromptSystemSaved: "改写 System Prompt 已保存",
|
||||
rewritePromptUserSaved: "改写 User Prompt 已保存",
|
||||
customPromptEnabled: "已启用自定义 Prompt",
|
||||
defaultPromptEnabled: "已使用系统默认 Prompt",
|
||||
customContextTemplateEnabled: "已启用自定义总结 Prompt",
|
||||
defaultContextTemplateEnabled: "已使用系统默认总结 Prompt",
|
||||
resetSystemPromptSuccess: "已恢复为系统默认 Prompt",
|
||||
resetContextTemplateSuccess: "已恢复为系统默认总结 Prompt",
|
||||
},
|
||||
},
|
||||
// 新增:MCP 设置
|
||||
|
||||
@@ -226,7 +226,7 @@ onMounted(async () => {
|
||||
color: #333333;
|
||||
line-height: 1.6;
|
||||
/* 确保换行符正确显示 */
|
||||
white-space: pre-line; /* 保留换行符,但合并多个空格 */
|
||||
// white-space: pre-line; /* 保留换行符,但合并多个空格 */
|
||||
}
|
||||
|
||||
.markdown-content {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -91,7 +91,7 @@
|
||||
|
||||
<!-- Agent 配置 -->
|
||||
<div v-if="currentSection === 'agent'" class="section">
|
||||
<AgentSettings />
|
||||
<AgentSettings :active-sub-section="currentSubSection || 'modes'" />
|
||||
</div>
|
||||
|
||||
<!-- 网络搜索配置 -->
|
||||
@@ -156,7 +156,7 @@ const navItems = computed(() => [
|
||||
{
|
||||
key: 'models',
|
||||
icon: 'control-platform',
|
||||
label: t('settings.modelConfig'),
|
||||
label: t('settings.modelManagement'),
|
||||
children: [
|
||||
{ key: 'chat', label: t('model.llmModel') },
|
||||
{ key: 'embedding', label: t('model.embeddingModel') },
|
||||
@@ -165,9 +165,19 @@ const navItems = computed(() => [
|
||||
]
|
||||
},
|
||||
{ key: 'ollama', icon: 'server', label: 'Ollama' },
|
||||
{ key: 'agent', icon: 'chat', label: t('settings.conversationConfig') },
|
||||
{
|
||||
key: 'agent',
|
||||
icon: 'chat',
|
||||
label: t('settings.conversationStrategy'),
|
||||
children: [
|
||||
{ key: 'modes', label: t('conversationSettings.menus.modes') },
|
||||
{ key: 'models', label: t('conversationSettings.menus.models') },
|
||||
{ key: 'thresholds', label: t('conversationSettings.menus.thresholds') },
|
||||
{ key: 'advanced', label: t('conversationSettings.menus.advanced') },
|
||||
]
|
||||
},
|
||||
{ key: 'websearch', icon: 'search', label: t('settings.webSearchConfig') },
|
||||
{ key: 'mcp', icon: 'tools', label: t('settings.mcpService') },
|
||||
{ key: 'mcp', icon: 'tools', label: t('settings.mcpService') },
|
||||
{ key: 'system', icon: 'info-circle', label: t('settings.systemSettings') },
|
||||
{ key: 'tenant', icon: 'user-circle', label: t('settings.tenantInfo') },
|
||||
{ key: 'api', icon: 'secured', label: t('settings.apiInfo') }
|
||||
@@ -183,11 +193,13 @@ const handleNavClick = (item: any) => {
|
||||
} else {
|
||||
expandedMenus.value.push(item.key)
|
||||
}
|
||||
currentSubSection.value = item.children[0].key
|
||||
} else {
|
||||
currentSubSection.value = ''
|
||||
}
|
||||
|
||||
// 切换到对应页面
|
||||
currentSection.value = item.key
|
||||
currentSubSection.value = ''
|
||||
}
|
||||
|
||||
// 子菜单点击处理
|
||||
@@ -222,19 +234,22 @@ const handleClose = () => {
|
||||
watch(() => uiStore.settingsInitialSection, (section) => {
|
||||
if (section && visible.value) {
|
||||
currentSection.value = section
|
||||
if (uiStore.settingsInitialSubSection) {
|
||||
currentSubSection.value = uiStore.settingsInitialSubSection
|
||||
// 展开对应的父菜单
|
||||
const navItem = (navItems.value as any[]).find((item) => item.key === section)
|
||||
if (navItem && navItem.children && navItem.children.length > 0) {
|
||||
if (!expandedMenus.value.includes(section)) {
|
||||
expandedMenus.value.push(section)
|
||||
}
|
||||
// 滚动到对应区域
|
||||
setTimeout(() => {
|
||||
const element = document.querySelector(`[data-model-type="${uiStore.settingsInitialSubSection}"]`)
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
}, 300)
|
||||
currentSubSection.value = uiStore.settingsInitialSubSection || navItem.children[0].key
|
||||
if (uiStore.settingsInitialSubSection) {
|
||||
setTimeout(() => {
|
||||
const element = document.querySelector(`[data-model-type="${uiStore.settingsInitialSubSection}"]`)
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
}
|
||||
}, 300)
|
||||
}
|
||||
} else {
|
||||
currentSubSection.value = ''
|
||||
}
|
||||
}
|
||||
}, { immediate: true })
|
||||
@@ -252,15 +267,13 @@ const handleSettingsNav = (e: CustomEvent) => {
|
||||
if (section) {
|
||||
currentSection.value = section
|
||||
// 如果有子菜单,自动展开
|
||||
const navItem = (navItems as any).find((item: any) => item.key === section)
|
||||
const navItem = (navItems.value as any[]).find((item: any) => item.key === section)
|
||||
if (navItem && navItem.children && navItem.children.length > 0) {
|
||||
if (!expandedMenus.value.includes(section)) {
|
||||
expandedMenus.value.push(section)
|
||||
}
|
||||
// 如果有 subsection,选中对应的子菜单项
|
||||
if (subsection) {
|
||||
currentSubSection.value = subsection
|
||||
}
|
||||
currentSubSection.value = subsection || navItem.children[0].key
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user