Sfoglia il codice sorgente

上一页下一页

王通 2 anni fa
parent
commit
bbb13ecf4f
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/views/forest.vue

+ 5 - 0
src/views/forest.vue

@@ -1323,8 +1323,13 @@
         })
       },
       getEventList(day, pageSize, pageNum, eventSearch, loading) {
+        let num=this.eventList.length/pageSize+1
         if (pageNum < 1) {
           this.$modal.msg('当前已是第一页')
+          return
+        } else if(pageNum>num)
+        {
+          this.$modal.msg('当前已是最后一页')
           return;
         }
         this.pageSize = pageSize;