摘要: 可以在全局钩子中加入 router.beforeEach((to, from, next) => { next() window.scrollTo(0,0) }) scrollTo() 方法可把内容滚动到指定的坐标。语法:scrollTo(xpos,ypos) 阅读全文
posted @ 2019-12-03 16:04 ZJTL 阅读(2286) 评论(0) 推荐(1) 编辑