Преглед изворни кода

fix: 指标字符串问题

100011797 пре 3 година
родитељ
комит
c473060ed5
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/components/FIndicators/index.tsx

+ 4 - 4
src/components/FIndicators/index.tsx

@@ -120,10 +120,10 @@ const FIndicators = (props: Props) => {
         <>
           <Input
             value={value?.value ? value?.value[0] : ''}
-            onChange={(val) => {
+            onChange={(e) => {
               onChange({
                 ...value,
-                value: [val, value?.value && value?.value[1]],
+                value: [e.target.value, value?.value && value?.value[1]],
               });
             }}
           />
@@ -132,10 +132,10 @@ const FIndicators = (props: Props) => {
               ~
               <Input
                 value={value?.value ? value?.value[1] : ''}
-                onChange={(val) => {
+                onChange={(e) => {
                   onChange({
                     ...value,
-                    value: [value?.value && value?.value[0], val],
+                    value: [value?.value && value?.value[0], e.target.value],
                   });
                 }}
               />