vue路由跳转返回顶部

mac2024-05-17  24

app.vue

mounted(){ this.$router.afterEach((to, from) => { window.scrollTo(0, 0) }) }
最新回复(0)