Browse Source

书架为空

natasha 1 month ago
parent
commit
70c067158e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/bookShelf/index.vue

+ 4 - 0
src/views/bookShelf/index.vue

@@ -416,6 +416,10 @@ export default {
         .then((res) => {
           this.loading = false;
           if (res.status === 1) {
+            if (res.goods_list.length === 0 && res.cur_page === 0) {
+              this.BookList = [];
+              return;
+            }
             if (
               this.typeValue === -1 ||
               (this.typeValue === 10 &&