Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix: 设置弹窗关闭时刷新模型列表
wizardchenaf471b5094b5
diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vueindex 4cc777d5b..d697405a6 100644--- a/frontend/src/views/agent/AgentEditorModal.vue+++ b/frontend/src/views/agent/AgentEditorModal.vue@@ -1417,6 +1417,21 @@ watch(isAgentMode, (isAgent) => {}});+// 监听设置弹窗关闭,刷新模型列表+watch(() => uiStore.showSettingsModal, async (visible, prevVisible) => {+ // 从设置页面返回时(弹窗关闭),刷新模型列表+ if (prevVisible && !visible && props.visible) {+ try {+ const models = await listModels();+ if (models && models.length > 0) {+ allModels.value = models;+ }+ } catch (e) {+ console.warn('Failed to refresh models after settings closed', e);+ }+ }+});+// 加载依赖数据const loadDependencies = async () => {try {