This commit is contained in:
Horis
2024-09-19 12:57:45 +08:00
parent 7af57714eb
commit e4583fe206
3 changed files with 24 additions and 3 deletions
+4 -1
View File
@@ -186,7 +186,10 @@ const handleBookClick = async (book) => {
durChapterIndex = 0,
durChapterPos = 0,
} = book;
await API.saveBook(book);
// 判断是否为 searchBook
if (book.durChapterIndex === undefined) {
await API.saveBook(book);
}
toDetail(bookUrl, name, author, durChapterIndex, durChapterPos);
};
const toDetail = (bookUrl, bookName, bookAuthor, chapterIndex, chapterPos) => {