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)) {