# 解决VUE路由跳转到第二页位置不在顶部问题 在router.js 里面添加 scrollBehavior (to, from, savedPosition) { return { x: 0, y: 0 } }