[skip ci] web: VisibilityChange兼容Safari 14 14.5

This commit is contained in:
Xwite
2023-05-12 21:51:54 +08:00
parent 114b70c317
commit de516f8983
2 changed files with 18 additions and 10 deletions

View File

@@ -58,7 +58,6 @@ const titleRef = ref();
const paragraphRef = ref();
const scrollToReadedLength = (length) => {
if (length === 0) return;
console.log("已读长度", length);
let paragraphIndex = chapterPos.value.findIndex(
(wordCount) => wordCount >= length
);