可以在vue路由新增scrollBehavior,控制跳转页面高度
import Router from 'vue-router'
new Router({
scrollBehavior (to, from, savedPosition) {
return { x: 0, y: 0 }
}
})
可以在vue路由新增scrollBehavior,控制跳转页面高度
import Router from 'vue-router'
new Router({
scrollBehavior (to, from, savedPosition) {
return { x: 0, y: 0 }
}
})