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

+ 2 - 2
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -143,7 +143,7 @@ const Widget = ({
     }
     get<IApiResponseDictList>(`/v2/wbwlookup?word=${word}`).then((json) => {
       console.log("lookup ok", json.data.count);
-      //扫描结果将结果按照词头分开
+      //存储到redux
       store.dispatch(add(json.data.rows));
     });
 
@@ -241,7 +241,7 @@ const Widget = ({
               }}
               onChange={(e: string) => {
                 const newData: IWbw = JSON.parse(JSON.stringify(wordData));
-                newData.case = { value: e.split("+"), status: 5 };
+                newData.case = { value: e.split("$"), status: 5 };
                 setWordData(newData);
               }}
             />