From ecbc5f7d093c38ac07cc8976c396d193dc001346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=84=AD=E6=B2=9B=E8=BB=92?= Date: Wed, 24 Sep 2025 17:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E4=BE=8B=E5=8F=A5?= =?UTF-8?q?=E5=9C=96=E7=89=87=E6=98=A0=E5=B0=84=E9=82=8F=E8=BC=AF=EF=BC=8C?= =?UTF-8?q?=E6=AD=A3=E7=A2=BA=E9=A1=AF=E7=A4=BA=E6=96=B0=E5=A2=9E=E6=8C=89?= =?UTF-8?q?=E9=88=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改imageMap只保留真正有圖片的詞彙(evidence) - warrants和recovering現在會顯示「新增例句圖」按鈕 - 修復所有詞卡都顯示mock圖片的問題 - 為AI生成流程提供正確的入口點 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- frontend/app/flashcards/page.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/app/flashcards/page.tsx b/frontend/app/flashcards/page.tsx index 2f4fcf7..b257c2b 100644 --- a/frontend/app/flashcards/page.tsx +++ b/frontend/app/flashcards/page.tsx @@ -25,12 +25,10 @@ function FlashcardsContent() { // 例句圖片邏輯 const getExampleImage = (word: string): string | null => { + // 只列出真正有例句圖片的詞彙 const imageMap: {[key: string]: string} = { - 'brought': '/images/examples/bring_up.png', - 'instincts': '/images/examples/instinct.png', - 'warrants': '/images/examples/warrant.png', 'evidence': '/images/examples/bring_up.png', - 'recovering': '/images/examples/instinct.png' + // warrants 和 recovering 暫時移除,將顯示新增按鈕 } // 只返回已確認存在的圖片,沒有則返回 null