zhouna 3 năm trước cách đây
mục cha
commit
79a364b69d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
   }