mounted () { this.$router.afterEach((to, from, next) => { window.scrollTo(0, 0); //跳到别的页面会自动滚动底部 }); history.pushState(null, null, document.URL); },