瀏覽代碼

注释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();