From 0b460e22b09c980afb64751c236f59f5079a9bc4 Mon Sep 17 00:00:00 2001 From: ah-max150 Date: Fri, 25 Sep 2026 00:35:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8A=A9=E6=89=8B=E8=AE=B0?= =?UTF-8?q?=E5=BF=86=E9=A1=B5=E6=94=B9=E7=94=A8=20VXE=20=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E4=B8=8E=20Alert=20=E5=AF=B9=E9=BD=90=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/apps/web-antd/src/layouts/basic.vue | 6 +- .../src/router/routes/static/memories.ts | 4 +- .../src/views/agent/memories/index.vue | 246 +++++++++++++----- 3 files changed, 188 insertions(+), 68 deletions(-) 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 @@