Browse Source

添加拼写选项

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

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

@@ -69,7 +69,10 @@ const WbwDetailFactorWidget = ({ data, onChange }: IWidget) => {
         value: item,
       };
     });
-    setFactorOptions(options);
+    setFactorOptions([
+      ...options,
+      { label: data.real.value, value: data.real.value },
+    ]);
   }, [data.real.value, inlineDict.wordIndex, inlineDict.wordList]);
 
   return (