فهرست منبع

只有巴利文不空才查字典

visuddhinanda 2 سال پیش
والد
کامیت
145b6dac6f
1فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 7 3
      dashboard/src/components/template/Wbw/WbwWord.tsx

+ 7 - 3
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -169,12 +169,16 @@ const WbwWordWidget = ({
         style={styleWbw}
         onMouseEnter={() => {
           setShowRelationTool(true);
-          if (intervalRef.current === null) {
+          if (
+            intervalRef.current === null &&
+            wordData.real &&
+            wordData.real.value.length > 0
+          ) {
             //开始计时,计时结束查字典
             intervalRef.current = window.setInterval(
               lookup,
-              200,
-              wordData.word.value
+              300,
+              wordData.real.value
             );
           }
         }}