feat(chat): 移除欢迎页两条指定建议文案

This commit is contained in:
肖应宇 2026-04-09 17:48:38 +08:00
parent c787802352
commit db13c1a4e0
1 changed files with 7 additions and 0 deletions

View File

@ -112,6 +112,11 @@ const iconMap: Record<string, any> = {
学术: 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)) {