fix scroll to the current chapter fail

This commit is contained in:
fengqi 2024-03-15 17:11:15 +08:00
parent 5fcd23409a
commit f49609380d

View file

@ -36,7 +36,9 @@ export default {
},
watch: {
value(newVal) {
this.$nextTick(this.scrollToChapter)
setTimeout(() => {
this.$nextTick(this.scrollToChapter)
},0);
}
},
computed: {