This commit is contained in:
Horis committed 2024-09-19 12:57:45 +08:00
1 parent c9823e5f5a
commit e92f247d05
3 files changed
+24 -3

No files matched your search

+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) => {