在Vue 3 中,可以使用ref 和nextTick 解决此问题:. 在template 中添加ref. 在onMounted 中添加nextTick,将scrollIntoView 方法放入nextTick 中.
確定! 回上一頁