{{ props.row.desc.author }}
@@ -311,8 +312,8 @@ class RecentBooksPage {
this.close();
}
- loadBook(url) {
- this.$emit('load-book', {url});
+ loadBook(row) {
+ this.$emit('load-book', {url: row.url, path: row.path});
this.close();
}
diff --git a/client/components/Reader/share/bookManager.js b/client/components/Reader/share/bookManager.js
index 233c0a95..c7b1fe38 100644
--- a/client/components/Reader/share/bookManager.js
+++ b/client/components/Reader/share/bookManager.js
@@ -485,13 +485,13 @@ class BookManager {
return result;
}
- findRecentByUrl(url) {
+ findRecentByUrlAndPath(url, bookPath) {
let max = 0;
let result = null;
for (const key in this.recent) {
const book = this.recent[key];
- if (!book.deleted && book.url == url && book.addTime > max) {
+ if (!book.deleted && book.url == url && book.addTime > max && (!bookPath || book.path == bookPath)) {
max = book.addTime;
result = book;
}