Forráskód Böngészése

杂音类默认值bug修改2726,2730

zhouna 5 éve
szülő
commit
8d58f6aaf6
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/components/SpreadDrop/index.jsx

+ 2 - 2
src/components/SpreadDrop/index.jsx

@@ -360,8 +360,8 @@ class SpreadDrop extends Component{
     return classNames(style['tag'],orgBorder,ext,setFontColorSize(1));
   }
   ifDefault(){
-    const {type,otherDefault,curDefault} = this.props;
-    const showDefaulted = (type=='2'&&curDefault)||(type=='3'&&otherDefault);
+    const {type,otherDefault,curDefault,showVal} = this.props;
+    const showDefaulted = ((type=='2'&&curDefault)||(type=='3'&&otherDefault))&&showVal;
     return showDefaulted;
   }
   componentDidMount(){