Explorar el Código

type 按照 : 切分

visuddhinanda hace 2 años
padre
commit
a67ca3e591
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

+ 2 - 0
dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

@@ -112,6 +112,7 @@ const WbwDetailRelationWidget = ({
   useEffect(() => {
   useEffect(() => {
     let grammar = data.case?.value
     let grammar = data.case?.value
       ?.replace("#", "$")
       ?.replace("#", "$")
+      .replace(":", "$")
       .replaceAll(".", "")
       .replaceAll(".", "")
       .split("$");
       .split("$");
     if (data.grammar2?.value) {
     if (data.grammar2?.value) {
@@ -268,6 +269,7 @@ const WbwDetailRelationWidget = ({
                 const currSelect = relationOptions?.filter(
                 const currSelect = relationOptions?.filter(
                   (rl) => rl.name === value
                   (rl) => rl.name === value
                 );
                 );
+                console.log("filteredRelation", currSelect);
                 setCurrRelation(currSelect);
                 setCurrRelation(currSelect);
                 console.log(`selected ${value}`);
                 console.log(`selected ${value}`);
                 setRelation((origin) => {
                 setRelation((origin) => {