created(){
$(document).ready(function(){
$(window).scrollTop(0)
})
},
在created钩子中执行
全局设置
router.afterEach((to,from,next) => {
window.scrollTo(0,0);
})
created(){
$(document).ready(function(){
$(window).scrollTop(0)
})
},
在created钩子中执行
全局设置
router.afterEach((to,from,next) => {
window.scrollTo(0,0);
})