vue路由跳转页面出现位置

重置页面位置

router.afterEach((to,from,next) => {
  window.scrollTo(0,0);
});

  

原文地址:https://www.cnblogs.com/lijianshen/p/13518606.html