From caa484f6511baeb963699063e4927d34f8d63c2a Mon Sep 17 00:00:00 2001 From: wlt Date: Wed, 17 Jun 2026 10:48:25 +0800 Subject: [PATCH] feat: add agent mode toggle to AiAssistant + i18n nav keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AiAssistant: new mode switch (AI助手/数字员工) in dialog header. Agent mode shows a product info form that triggers the agent pipeline (search->analyze->outreach). Pipeline progress stages and lead results displayed inline. i18n: added missing nav keys (home, more, productsQuotations) to both zh-CN and en locale files. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- user-frontend/src/components/AiAssistant.vue | 146 ++++++++++++++++++- user-frontend/src/locales/en.json | 3 + user-frontend/src/locales/zh-CN.json | 3 + 3 files changed, 150 insertions(+), 2 deletions(-) diff --git a/user-frontend/src/components/AiAssistant.vue b/user-frontend/src/components/AiAssistant.vue index 3acbfe8..31b0cf1 100644 --- a/user-frontend/src/components/AiAssistant.vue +++ b/user-frontend/src/components/AiAssistant.vue @@ -6,13 +6,69 @@ + + + +
+
+ 输入产品信息,AI 数字员工将自动搜索客户、分析匹配并生成开发信。 +
+ + + + + + + + + + + + + {{ agentRunning ? '运行中...' : '🚀 启动数字员工' }} + + + + +
+ +
+
+ + + +
{{ stage.error }}
+
+
+
+
发现 {{ agentPipeline.pipeline_data.leads.length }} 个高匹配客户
+
+ {{ lead.company || lead.name || '未知' }} + 匹配度 {{ lead.match_score }}% +
+
+
+
+ + +