|
@@ -108,8 +108,11 @@ export default {
|
|
|
this.getUserShelfBooks()
|
|
|
}
|
|
|
},
|
|
|
- getUserShelfBooks() {
|
|
|
+ getUserShelfBooks(isDel = false) {
|
|
|
getReadrecord().then(r => {
|
|
|
+ if(!isDel){
|
|
|
+ this.isDelMode = false;
|
|
|
+ }
|
|
|
r.map(m => {
|
|
|
m.cover_url = m.cover
|
|
|
m.recent_cid = m.cid
|
|
@@ -122,8 +125,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
deleteBook(book) {
|
|
|
- deleteShelfBook({ bid: book.bid }).then(r => {
|
|
|
- this.getUserShelfBooks()
|
|
|
+ deleteShelfBook({ bid: book.book_id }).then(r => {
|
|
|
+ this.getUserShelfBooks(true)
|
|
|
})
|
|
|
},
|
|
|
changeMode() {
|