Explorar o código

查体隐藏部分有高亮标签全部展开容错

zhouna %!s(int64=5) %!d(string=hai) anos
pai
achega
70b3cad4e1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/CheckBody/index.jsx

+ 3 - 0
src/components/CheckBody/index.jsx

@@ -35,6 +35,9 @@ class CheckBody extends Component{
     this.setState({boxLeft:next.boxLeft})
   }
   isThereHigh(arr,ids){
+    if(!arr||!ids){
+      return false;
+    }
     const item = arr.find((it)=>{
       return ids.includes(it.id);
     });