VUE路由鉤子

1. 實現移動端路由跳轉讓滾動條回到頂部code const router = new VueRouter({...}) router.afterEach((to, from, next) => { window.scrollTo(0, 0) })
相關文章
相關標籤/搜索