vue在路由跳转时,如何让跳转的页面显示在最顶端

2025-03-25 17:10:29
推荐回答(1个)
回答1:

created(){
this.menu();
},

methods: {
menu() {
window.scrollTo(0,0);
}
}