소스 검색

注释scrollTo

liucf 6 년 전
부모
커밋
91c3713c62
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/PreviewBody/index.jsx

+ 1 - 1
src/components/PreviewBody/index.jsx

@@ -16,7 +16,7 @@ class PreviewBody extends Component {
         this.getCurrentDate();
     }
     componentWillReceiveProps(){
-        this.$content.current.scrollTo(0,0)
+        // this.$content.current.scrollTo(0,0)
     }
     getCurrentDate(){
         let myDate = new Date();