vue跳转的 a页面跳转到b页面会出现a页面在哪个位置 b还在哪个位置
加上这个会跳到顶部
this.$router.afterEach((to, from, next) => {
window.scrollTo(0, 0); //跳到别的页面会自动滚动底部
});
vue跳转的小问题
猜你喜欢
转载自blog.csdn.net/weixin_43860135/article/details/85618866
今日推荐
周排行