Skip to content

Commit

Permalink
Update Chapter.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwite authored Jan 31, 2023
1 parent 427ff3f commit 61e3b64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Chapter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ export default {
return wordCount >= this.chapterPos;
});
if (index == -1) index = this.chapterData[0].content.length - 1;
if (index == 0) return; //第一行不跳转
//跳转
jump(this.$refs.chapter[0].children[1].children[index], {
duration: 0,
Expand Down

0 comments on commit 61e3b64

Please sign in to comment.