From b0ed512e97575fdd5b00049711bb70afe08a02c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BB=98?= <925456043@qq.com> Date: Mon, 27 Jul 2026 19:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B6=E6=95=9B=20Agent=20=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E5=99=A8=E5=AF=BC=E8=88=AA=E4=B8=8E=E8=AE=B0=E5=BF=86?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 增加返回智能体列表入口 - 移除旧消息数压缩参数并保持令牌阈值配置 --- .../app/src/views/ai/agents/AgentDesigner.vue | 24 +++++++++++- .../ai/agents/components/AgentToolForm.vue | 7 +++- .../composables/useAgentDesignerState.test.ts | 39 +++++++++++++++++++ .../composables/useAgentDesignerState.ts | 28 ++++++++----- 4 files changed, 85 insertions(+), 13 deletions(-) diff --git a/easyflow-ui-admin/app/src/views/ai/agents/AgentDesigner.vue b/easyflow-ui-admin/app/src/views/ai/agents/AgentDesigner.vue index dffb17c9..217400ad 100644 --- a/easyflow-ui-admin/app/src/views/ai/agents/AgentDesigner.vue +++ b/easyflow-ui-admin/app/src/views/ai/agents/AgentDesigner.vue @@ -9,7 +9,8 @@ import type { import { computed, onActivated, onDeactivated, onMounted, ref } from 'vue'; import { useRoute, useRouter } from 'vue-router'; -import { ElMessage, ElMessageBox } from 'element-plus'; +import { ArrowLeft } from '@element-plus/icons-vue'; +import { ElButton, ElMessage, ElMessageBox } from 'element-plus'; import { tryit } from 'radash'; import { api } from '#/api/request'; @@ -502,10 +503,22 @@ function handleTryout() { function handleCloseTryout() { selectBase(); } + +function handleBack() { + router.push(AGENT_TAB_PAGE_KEY); +}