document.getElementById('app').scrollTop = 0
Vue switches the page, and the scroll bar returns to the top
Guess you like
Origin blog.csdn.net/weixin_44727080/article/details/114665475
Ranking
document.getElementById('app').scrollTop = 0