소스 검색

删除多余代码

zhouna 6 년 전
부모
커밋
5afd593992
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/InfoTitle/index.jsx

+ 2 - 2
src/components/InfoTitle/index.jsx

@@ -18,8 +18,8 @@ class InfoTitle extends Component {
         store.dispatch(initItemList());
         store.dispatch(showHistory(true))
     }
-    render() {console.log(store)
-        const {disVisible,copyVisible} = store.getState().copyRight;console.log(disVisible,copyVisible)
+    render() {
+        const {disVisible,copyVisible} = this.props;
         return <div className={style['title-wrapper']} style={{zIndex:disVisible||copyVisible?40:204}}>
             <PatInfoContainer />
             <div className={style["operations"]} onClick={this.showHistoryBox}>