watch: {
// 监听路由的变化
$route: {
handler(val) {
if (val.path.indexOf('/product') < 0) {
this.$refs.layoutDefaultsScrollbarRef.wrap.scrollTop = 0
}
},
deep: true,
},
},
页面跳转,滚动条返回顶部
最新推荐文章于 2024-05-09 18:55:33 发布