Explorar o código

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

zhouna %!s(int64=5) %!d(string=hai) anos
pai
achega
8d58f6aaf6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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(){