VUE路由钩子

1. 实现移动端路由跳转让滚动条回到顶部code const router = new VueRouter({...}) router.afterEach((to, from, next) => { window.scrollTo(0, 0) })
相关文章
相关标签/搜索