可以用 $nextTick 來確保 Dom 變化後再執行一些事情:
$nextTick
Dom
this.$nextTick( () => { this.$refs.li[7].scrollIntoView() })