zhouna 3 년 전
부모
커밋
79a364b69d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
   }