瀏覽代碼

:fire: console.debug("relation match"

visuddhinanda 1 年之前
父節點
當前提交
15f096ebe3
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

+ 1 - 6
dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

@@ -123,13 +123,12 @@ const WbwDetailRelationWidget = ({
         grammar = [data.grammar2?.value.replaceAll(".", "")];
       }
     }
-    console.log("relation match grammar", grammar);
     if (typeof grammar === "undefined") {
       return;
     }
 
     //找出符合条件的relation
-    console.debug("relation match data=", data);
+
     const filteredRelation = relations?.filter((value) => {
       let caseMatch = true;
       let spellMatch = true;
@@ -159,12 +158,8 @@ const WbwDetailRelationWidget = ({
         // 使用正则表达式
         spellMatch = regex.test(data.real.value);
       }
-
-      console.debug("relation match", value, caseMatch, spellMatch);
-
       return caseMatch && spellMatch;
     });
-    console.debug("relation match filteredRelation=", filteredRelation);
 
     setCurrRelation(filteredRelation);
     setRelationOptions(filteredRelation);