fix: 收敛 Agent 设计器导航与记忆配置

- 增加返回智能体列表入口

- 移除旧消息数压缩参数并保持令牌阈值配置
This commit is contained in:
2026-07-27 19:41:24 +08:00
parent b08eb009bb
commit b0ed512e97
4 changed files with 85 additions and 13 deletions

View File

@@ -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);
}
</script>
<template>
<div v-loading="pageLoading" class="agent-designer">
<ElButton
class="agent-designer__back"
:icon="ArrowLeft"
aria-label="返回智能体列表"
@click="handleBack"
>
返回智能体列表
</ElButton>
<template v-if="contentReady">
<AgentStudioCanvas
:active="canvasActive"
@@ -566,4 +579,13 @@ function handleCloseTryout() {
),
var(--el-fill-color-extra-light);
}
.agent-designer__back {
position: absolute;
top: var(--space-6);
left: var(--space-6);
z-index: 10;
border-radius: var(--radius-control);
box-shadow: var(--shadow-subtle);
}
</style>