scrollBehavior (to, from, savedPosition) { return { x: 0, y: 0 } } 放入router.js后面或main.js的路由后面 转载于:https://my.oschina.net/u/3306200/blog/3061223