瀏覽代碼

bug fix: 管理中心:删除一个元素后补一个元素来保持列表长度是页数的整数倍时,逻辑有错误

任一存 2 年之前
父節點
當前提交
e9cbbaa275

+ 2 - 2
packages/qjkankan-editor/src/views/material/audio/index.vue

@@ -390,7 +390,7 @@ export default {
           getMaterialList(
             {
               dir: this.currentFolderId,
-              pageNum: this.list.length + 1,
+              pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
               type: TYPE,
@@ -436,7 +436,7 @@ export default {
               getMaterialList(
                 {
                   dir: this.currentFolderId,
-                  pageNum: this.list.length + 1,
+                  pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,
                   type: TYPE,

+ 2 - 2
packages/qjkankan-editor/src/views/material/image/index.vue

@@ -384,7 +384,7 @@ export default {
           getMaterialList(
             {
               dirId: this.currentFolderId,
-              pageNum: this.list.length + 1,
+              pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
               type: TYPE,
@@ -432,7 +432,7 @@ export default {
               getMaterialList(
                 {
                   dirId: this.currentFolderId,
-                  pageNum: this.list.length + 1,
+                  pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,
                   type: TYPE,

+ 2 - 2
packages/qjkankan-editor/src/views/material/pano/index.vue

@@ -502,7 +502,7 @@ export default {
           getMaterialList(
             {
               dir: this.currentFolderId,
-              pageNum: this.list.length + 1,
+              pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
               type: TYPE,
@@ -550,7 +550,7 @@ export default {
               getMaterialList(
                 {
                   dir: this.currentFolderId,
-                  pageNum: this.list.length + 1,
+                  pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,
                   type: TYPE,

+ 2 - 2
packages/qjkankan-editor/src/views/material/video/index.vue

@@ -394,7 +394,7 @@ export default {
           getMaterialList(
             {
               dir: this.currentFolderId,
-              pageNum: this.list.length + 1,
+              pageNum: this.list.length,
               pageSize: 1,
               searchKey: this.searchKey,
               type: TYPE,
@@ -440,7 +440,7 @@ export default {
               getMaterialList(
                 {
                   dir: this.currentFolderId,
-                  pageNum: this.list.length + 1,
+                  pageNum: this.list.length,
                   pageSize: 1,
                   searchKey: this.searchKey,
                   type: TYPE,

+ 1 - 1
packages/qjkankan-editor/src/views/material/works/index.vue

@@ -331,7 +331,7 @@ export default {
             const lastestUsedSearchKey = this.searchKey
             getWorksList(
               {
-                pageNum: this.list.length + 1,
+                pageNum: this.list.length,
                 pageSize: 1,
                 searchKey: this.searchKey
               },