visuddhinanda 2 лет назад
Родитель
Сommit
b370480184
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      dashboard/src/pages/admin/dictionary/list.tsx

+ 5 - 1
dashboard/src/pages/admin/dictionary/list.tsx

@@ -10,6 +10,7 @@ interface IDict {
   title: string;
   count: number;
   vocabulary: number;
+  parent: number;
 }
 
 interface IDictStatisticResponse {
@@ -45,7 +46,10 @@ const DictListWidget = () => {
                 statistic={{
                   value: item.count,
                   description: (
-                    <Statistic title="单词表" value={item.vocabulary} />
+                    <>
+                      <Statistic title="单词表" value={item.vocabulary} />
+                      <Statistic title="词干" value={item.parent} />
+                    </>
                   ),
                 }}
                 style={{