refactor(agent): 重构智能体聊天页面

- 修改 HistoryChat组件中显示智能体名称而非标题
- 优化 Chat 页面初始化逻辑,添加组件卸载时的销毁操作
- 更新 Index 页面中智能体产品的展示方式
This commit is contained in:
林志军
2025-07-17 19:32:47 +08:00
parent b3af007dd2
commit af147625ae
3 changed files with 60 additions and 13 deletions

View File

@ -6,7 +6,7 @@
<a-menu mode="inline" theme="light">
<a-menu-item key="1">
<span class="menu-title">{{ cozeInfo.title }}</span>
<span class="menu-title">{{ cozeInfo.name }}</span>
<span style="color: #8492ff; font-size: 12px">{{ cozeInfo.type == 1 ? '智能体' : '对话式' }}</span>
<span style="float: right">{{ cozeInfo.views }}次使用</span>
<p>{{ cozeInfo.description }}</p>