Browse Source

factor 查字典 支持 - 分隔符

visuddhinanda 2 years ago
parent
commit
344e52eeb3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dashboard/src/components/template/Wbw/WbwDetailFactor.tsx

+ 1 - 1
dashboard/src/components/template/Wbw/WbwDetailFactor.tsx

@@ -51,7 +51,7 @@ const WbwDetailFactorWidget = ({ data, onChange }: IWidget) => {
     ) {
       return;
     }
-    lookup(data.factors?.value.split("+"));
+    lookup(data.factors?.value.replaceAll("-", "+").split("+"));
   }, [data.factors]);
 
   useEffect(() => {