zhouna hace 3 años
padre
commit
79a364b69d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/components/AddInspect/SlidePic/index.jsx

+ 2 - 2
src/components/AddInspect/SlidePic/index.jsx

@@ -69,10 +69,10 @@ class SlideSelect extends Component {
     })
   }
   handleDel(part,idx){
-    const {handleDelClick,item} = this.props;
+    const {handleDelClick,item} = this.props;console.log(item)
     this.setState({
       activeInd:true,
-      activeName:item.detailName,
+      activeName:item.detailName||item.name,
     })
     handleDelClick&&handleDelClick(1,part,idx);
   }