Ver código fonte

【我的素材-全景图片】更新封面时禁止列表无限滚动请求数据行为。

任一存 4 anos atrás
pai
commit
17c41a7b2a
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      src/views/material/pano/index.vue

+ 3 - 0
src/views/material/pano/index.vue

@@ -286,6 +286,7 @@ export default {
                 return eachItem.id === this.popupItem.id
                 return eachItem.id === this.popupItem.id
               })
               })
               if (index >= 0) {
               if (index >= 0) {
+                this.isRequestingMoreData = true
                 getMaterialList(
                 getMaterialList(
                   {
                   {
                     pageNum: index + 1,
                     pageNum: index + 1,
@@ -300,8 +301,10 @@ export default {
                     this.list.splice(index, 1, newData[0])
                     this.list.splice(index, 1, newData[0])
                     this.showCover = false;
                     this.showCover = false;
                     this.popupItem = "";
                     this.popupItem = "";
+                    this.isRequestingMoreData = false
                   },
                   },
                   () => {
                   () => {
+                    this.isRequestingMoreData = false
                     this.showCover = false;
                     this.showCover = false;
                     this.popupItem = "";
                     this.popupItem = "";
                   }
                   }