فهرست منبع

单词表取前八个

visuddhinanda 2 سال پیش
والد
کامیت
d2d559b5d6
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      dashboard/src/components/dict/SearchVocabulary.tsx

+ 1 - 0
dashboard/src/components/dict/SearchVocabulary.tsx

@@ -115,6 +115,7 @@ const SearchVocabularyWidget = ({
             };
           })
           .sort((a, b) => b.weight - a.weight)
+          .slice(0, 7)
           .map((item) => {
             return renderItem(item.word, item.count, item.meaning);
           });