main.JS 入口文件配合 vue-router 写这个
router.afterEach((to,from,next) => { Windows.scrollTo(0,0); });
来源: http://www.bubuko.com/infodetail-3002241.html