visuddhinanda 2 лет назад
Родитель
Сommit
f4f1fdf06f
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      dashboard/src/components/template/Term.tsx

+ 8 - 1
dashboard/src/components/template/Term.tsx

@@ -14,6 +14,7 @@ import { get } from "../../request";
 import { fullUrl } from "../../utils";
 import lodash from "lodash";
 import { order, push } from "../../reducers/term-order";
+import { click } from "../../reducers/term-click";
 
 const { Text, Title } = Typography;
 
@@ -231,7 +232,13 @@ export const TermCtl = ({
           }
           placement="bottom"
         >
-          <Typography.Link style={{ color: community ? "green" : undefined }}>
+          <Typography.Link
+            style={{ color: community ? "green" : undefined }}
+            onClick={() => {
+              console.debug("term send redux");
+              store.dispatch(click(termData));
+            }}
+          >
             {termData?.meaning
               ? termData?.meaning
               : termData?.word