问题场景:在tab切换表格或者切换页面时,希望滚动条每次都回到顶部。 代码: table上添加 ref='table' this.$nextTick(() => { this.$refs.table.bodyWrapper.scrollTop = 0 })