From 60515ee478d12301d7e4f5ccff4f2c178af173ee Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 13 Sep 2023 14:07:50 +0800
Subject: [PATCH] 航线文件查询恢复

---
 src/pages/page-web/projects/wayline.vue |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/pages/page-web/projects/wayline.vue b/src/pages/page-web/projects/wayline.vue
index 393b265..320e92d 100644
--- a/src/pages/page-web/projects/wayline.vue
+++ b/src/pages/page-web/projects/wayline.vue
@@ -126,17 +126,17 @@
 onMounted(() => {
   const parent = document.getElementsByClassName('scrollbar').item(0)?.parentNode as HTMLDivElement
   height.value = document.body.clientHeight - parent.firstElementChild!.clientHeight
-  // getWaylines()
+  getWaylines()
 
-  // const key = setInterval(() => {
-  //   const data = document.getElementById('data')?.lastElementChild as HTMLDivElement
-  //   if (pagination.total === 0 || Math.ceil(pagination.total / pagination.page_size) <= pagination.page || height.value <= data?.clientHeight + data?.offsetTop) {
-  //     clearInterval(key)
-  //     return
-  //   }
-  //   pagination.page++
-  //   getWaylines()
-  // }, 1000)
+  const key = setInterval(() => {
+    const data = document.getElementById('data')?.lastElementChild as HTMLDivElement
+    if (pagination.total === 0 || Math.ceil(pagination.total / pagination.page_size) <= pagination.page || height.value <= data?.clientHeight + data?.offsetTop) {
+      clearInterval(key)
+      return
+    }
+    pagination.page++
+    getWaylines()
+  }, 1000)
 })
 
 function getWaylines () {

--
Gitblit v1.9.3