From db13c1a4e0fe5a08f1e5226ecdc1fc75855b69d1 Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Thu, 9 Apr 2026 17:48:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(chat):=20=E7=A7=BB=E9=99=A4=E6=AC=A2?= =?UTF-8?q?=E8=BF=8E=E9=A1=B5=E4=B8=A4=E6=9D=A1=E6=8C=87=E5=AE=9A=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/WelcomeScreen.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/chat/WelcomeScreen.vue b/src/components/chat/WelcomeScreen.vue index b81c5ee..3d26f77 100644 --- a/src/components/chat/WelcomeScreen.vue +++ b/src/components/chat/WelcomeScreen.vue @@ -112,6 +112,11 @@ const iconMap: Record = { 学术: ThesisIcon, }; +const excludedSuggestionTexts = new Set([ + "让可学 AI 成为我的全科学习导师?", + "让 AI 扮演一位严谨的学术论文写作导师?", +]); + const suggestions = computed(() => { // 内部类型,包含 icon 组件用于渲染 type SuggestionWithIcon = Suggestion & { iconComponent: typeof Code }; @@ -121,6 +126,8 @@ const suggestions = computed(() => { // 遍历 prompt.json 的分类和条目 for (const category of Object.values(promptData)) { for (const [text, systemPrompt] of Object.entries(category)) { + if (excludedSuggestionTexts.has(text)) continue; + // 根据文本关键词选择图标 let iconComponent = Code; // 默认图标 for (const [keyword, icon] of Object.entries(iconMap)) {