路由跳转,规定页面位于顶部 2019-06-25 本文已影响0人 简小园 在main.js里面添加如下代码: router.afterEach((to,from, next) => { window.scrollTo(0,0) });