🔧 TypeScript 錯誤修復: - 移除循環引用:刪除 `type Flashcard = Flashcard` 重複定義 - 清理 import 衝突:直接使用從 flashcards.ts 導入的 Flashcard 型別 - 移除未使用變數:刪除 mockFlashcards 假資料定義 - 清理冗餘型別:移除不需要的 CardSet 型別定義 🧹 代碼清理: - 完全移除假資料依賴,現在純粹使用真實 API - 簡化型別結構,避免不必要的型別重複定義 - 提升代碼可維護性和類型安全性 現在詞卡頁面沒有 TypeScript 錯誤,所有功能正常運作。 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| [id] | ||
| page.tsx | ||