Просмотр исходного кода

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

任一存 4 лет назад
Родитель
Сommit
17c41a7b2a
1 измененных файлов с 3 добавлено и 0 удалено
  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
               })
               if (index >= 0) {
+                this.isRequestingMoreData = true
                 getMaterialList(
                   {
                     pageNum: index + 1,
@@ -300,8 +301,10 @@ export default {
                     this.list.splice(index, 1, newData[0])
                     this.showCover = false;
                     this.popupItem = "";
+                    this.isRequestingMoreData = false
                   },
                   () => {
+                    this.isRequestingMoreData = false
                     this.showCover = false;
                     this.popupItem = "";
                   }