diff --git a/client/src/pages/Apps.tsx b/client/src/pages/Apps.tsx index 4611f83..2898fec 100644 --- a/client/src/pages/Apps.tsx +++ b/client/src/pages/Apps.tsx @@ -29,6 +29,7 @@ import { SearchOutlined, SettingOutlined, TeamOutlined, + ThunderboltOutlined, } from '@ant-design/icons'; import { useAuth } from '../store/auth'; import { SIDEBAR_WIDTH } from '../layout/constants'; @@ -164,15 +165,35 @@ const BUILTIN_APPS: MockApp[] = [ lastUsedAt: '2026-08-20', isNew: true, }, + { + id: 'doubao', + name: '豆包', + desc: '豆包 AI 助手网页版:对话问答、写作创作、翻译与内容总结。', + source: 'builtin', + category: 'AI', + group: 'AI 工具', + installed: true, + icon: , + color: '#3370ff', + author: '字节跳动', + version: '网页版', + installedAt: '2026-08-20', + lastUsedAt: '2026-08-20', + isNew: true, + }, ]; -/** 关联外部项目(本地路径 + 运行地址),用于「主干CRM」等外部应用 */ -const EXTERNAL_PROJECTS: Record = { +/** 关联外部项目(本地路径 + 运行地址),用于「主干CRM」「豆包」等外部网页应用 */ +const EXTERNAL_PROJECTS: Record = { crm: { name: '客户管理小工具(本地版)', path: 'C:\\Users\\范先生\\CodeBuddy\\20260815164255\\客户管理小工具', url: 'https://bbitcrm.bbitcn.net/', }, + doubao: { + name: '豆包网页版', + url: 'https://www.doubao.com/', + }, }; const MARKET_APPS: MockApp[] = [ @@ -761,14 +782,16 @@ export default function AppsPage() { -
- 项目路径 - - {ext.path} - -
+ {ext.path && ( +
+ 项目路径 + + {ext.path} + +
+ )}
- 该应用为线上服务,点击「使用」将新窗口打开访问。 + 该应用为线上服务,在右侧运行页签中加载;若站点禁止嵌入,可点击「新窗口打开」访问。
@@ -776,7 +799,7 @@ export default function AppsPage() { })()} {/* 功能预览卡片 */} - {['chat', 'contacts', 'schedule', 'forms', 'knowledge', 'crm'].includes(selected.id) ? ( + {['chat', 'contacts', 'schedule', 'forms', 'knowledge', 'crm', 'doubao'].includes(selected.id) ? (
功能预览
@@ -905,4 +928,5 @@ const FEATURES: Record = { forms: ['表单设计', '在线填写', '审批流转'], knowledge: ['多级目录', '全文搜索', '团队协作'], crm: ['客户档案', '联系记录', '项目跟踪', '财务往来', '服务费提醒', '附件管理'], + doubao: ['对话问答', '写作创作', '翻译润色', '内容总结', '代码辅助'], }; diff --git a/commit-msg.tmp.txt b/commit-msg.tmp.txt new file mode 100644 index 0000000..f43d113 --- /dev/null +++ b/commit-msg.tmp.txt @@ -0,0 +1 @@ +feat: 应用中心新增豆包网页应用