fix: 修复SuggestionList展示错误的问题;git忽略proofshot的内容

This commit is contained in:
肖应宇 2026-04-07 09:36:31 +08:00
parent 1e981dc459
commit 927830198c
2 changed files with 2 additions and 5 deletions

1
.gitignore vendored
View File

@ -48,6 +48,7 @@ sandbox_image_cache.tar
frontend/imports
frontend/test-results
frontend/.cache
proofshot-artifacts
# ignore the legacy `web` folder
web/

View File

@ -508,11 +508,7 @@ function SuggestionList({
}) {
const { t } = useI18n();
const { textInput } = usePromptInputController();
const searchParams = useSearchParams();
const suggestions =
searchParams.get("mode") === "skill"
? t.inputBox.suggestions
: t.inputBox.suggestionsCreate;
const suggestions =t.inputBox.suggestions
const promptSuggestions = suggestions.filter(
(
suggestion,