diff --git a/apps/web/apps/web-antd/src/layouts/basic.vue b/apps/web/apps/web-antd/src/layouts/basic.vue index 0457e158..8eddd7e8 100644 --- a/apps/web/apps/web-antd/src/layouts/basic.vue +++ b/apps/web/apps/web-antd/src/layouts/basic.vue @@ -114,7 +114,7 @@ const MemoryIcon = createIconifyIcon('lucide:brain'); // 意见反馈图标 const FeedbackIcon = createIconifyIcon('lucide:message-square-plus'); -/** 是否具备智能助手聊天权限(用于「我的记忆」入口;含超管) */ +/** 是否具备智能助手聊天权限(用于「助手记忆」入口;含超管) */ const canUseAgentChat = computed(() => hasPermission('agent:chat')); /** 当前用户可切换的可用公司数 */ @@ -134,14 +134,14 @@ const menus = computed(() => { icon: UserIcon, text: '个人中心', }); - // 我的记忆(有助手聊天权才显示) + // 助手记忆(有助手聊天权才显示) if (canUseAgentChat.value) { menuItems.push({ handler: () => { router.push('/agent/memories'); }, icon: MemoryIcon, - text: '我的记忆', + text: '助手记忆', }); } // 意见反馈 diff --git a/apps/web/apps/web-antd/src/router/routes/static/memories.ts b/apps/web/apps/web-antd/src/router/routes/static/memories.ts index 87c177e0..07e971ef 100644 --- a/apps/web/apps/web-antd/src/router/routes/static/memories.ts +++ b/apps/web/apps/web-antd/src/router/routes/static/memories.ts @@ -1,7 +1,7 @@ import type { RouteRecordRaw } from 'vue-router'; /** - * 用户记忆管理(头像下拉入口;不进侧栏菜单) + * 助手长期记忆管理(头像下拉「助手记忆」入口;不进侧栏菜单) */ const staticRoutes: RouteRecordRaw[] = [ { @@ -10,7 +10,7 @@ const staticRoutes: RouteRecordRaw[] = [ component: () => import('#/views/agent/memories/index.vue'), meta: { icon: 'lucide:brain', - title: '我的记忆', + title: '助手记忆', hideInMenu: true, ignoreAccess: true, }, diff --git a/apps/web/apps/web-antd/src/views/agent/memories/index.vue b/apps/web/apps/web-antd/src/views/agent/memories/index.vue index a74297c5..388d3863 100644 --- a/apps/web/apps/web-antd/src/views/agent/memories/index.vue +++ b/apps/web/apps/web-antd/src/views/agent/memories/index.vue @@ -1,10 +1,16 @@ - - - - - + + - - - 在智能助手对话中发送「记住:…」可写入;助手按需检索,不会默认注入全部记忆。 - - - + + + 清空全部 + + + + + + {{ kindMeta(row.kind).label }} + + + + + + {{ row.summary || row.text || '—' }} + + + + + - - {{ m.summary || m.text }} - - {{ m.text }} - - - {{ m.updatedAt }} - - - - 删除 - - - - + {{ row.text }} + + — + + + + + 删除 + + +
- 在智能助手对话中发送「记住:…」可写入;助手按需检索,不会默认注入全部记忆。 -