natasha 1 月之前
父節點
當前提交
3192b0c029
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/views/bookShelf/index.vue

+ 2 - 6
src/views/bookShelf/index.vue

@@ -296,6 +296,7 @@ export default {
           this.BookList = [];
         }
       } else {
+        this.typeValue = null;
         this.BookList = [];
       }
 
@@ -372,7 +373,6 @@ export default {
     // 查询列表
     async getList() {
       this.loading = true;
-      let oldPageNumber = 1;
       let MethodName = "/ShopServer/Client/BookshelfQuery/PageQueryMyGoodsList";
       let order_column_list = [];
       if (this.sortField !== "") {
@@ -394,7 +394,6 @@ export default {
       };
       await getLogin(MethodName, data)
         .then((res) => {
-          console.log(this.typeValue + "page" + this.pageNumber);
           this.loading = false;
           if (res.status === 1) {
             if (
@@ -436,9 +435,6 @@ export default {
               if (res.total_page * this.pageSize <= res.cur_page_end_index) {
                 this.noMore = true;
               }
-              if (this.BookList.length === 0) {
-                console.log("kong" + this.typeValue + "---" + this.pageNumber);
-              }
             } else {
               this.BookList = [];
             }
@@ -535,7 +531,7 @@ export default {
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    console.log("2025-05-08-1");
+    console.log("2025-05-09");
     if (this.userMessage) {
       this.getNumber();
       this.getList();