luolei 5 年 前
コミット
bf337b3147
1 ファイル変更2 行追加5 行削除
  1. 2 5
      src/components/PushItems/RecommendInspect/index.jsx

+ 2 - 5
src/components/PushItems/RecommendInspect/index.jsx

@@ -10,7 +10,6 @@ class RecommendInspect extends Component {
         this.state = {
             showAll: false
         }
-        this.$ide = React.createRef();
         this.renderItem = this.renderItem.bind(this)
     }
     changeShowFlag() {
@@ -31,9 +30,7 @@ class RecommendInspect extends Component {
           <label for={item.id + item.name}>{item.name}</label>
       </span>
     }
-    componentDidMount(){
-      // console.log(this.$ide.current)
-    }
+
     render() {
       const { title,list, changeFlag, border } = this.props
       const { showAll } = this.state
@@ -60,7 +57,7 @@ class RecommendInspect extends Component {
       return   (
             <li className={style["inspectItem"]} style={border ? {"borderBottom": "1px solid #DFDFDF"} : ''}>
               <div className={style["title"]}>{title}:</div>
-              <div className={style["content"]} ref={this.$ide}>
+              <div className={style["content"]}>
                 {list.length === 0
                   ?<span >无</span>
                   : showAll