Closed zhanglongjiZLJ closed 4 years ago
页面跳转前总会滚动到顶部,然后跳转过去,返回的时候也是先到顶部,然后再显示到上次浏览的位置,该怎么解决
用bindLifecycle, 在componentWillUnactivate时记录滚动位置,再在componentDidActivate中手动还原
页面跳转前总会滚动到顶部,然后跳转过去,返回的时候也是先到顶部,然后再显示到上次浏览的位置,该怎么解决