优化
This commit is contained in:
1 parent
c9823e5f5a
commit
e92f247d05
3 files changed
+24
-3
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user