From ca73a173f008c8d7a9d700bad897ca24fe2d2203 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 16 十月 2023 09:29:57 +0800
Subject: [PATCH] 111

---
 h5_standard/src/views/tabPage/toBeHandled.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/h5_standard/src/views/tabPage/toBeHandled.vue b/h5_standard/src/views/tabPage/toBeHandled.vue
index 0fc2b4b..e1c00aa 100644
--- a/h5_standard/src/views/tabPage/toBeHandled.vue
+++ b/h5_standard/src/views/tabPage/toBeHandled.vue
@@ -58,7 +58,7 @@
 </template>
 
 <script setup lang="ts">
-    import { reactive, ref, onMounted, getCurrentInstance } from 'vue'
+    import { reactive, ref, onMounted, onActivated, getCurrentInstance } from 'vue'
     import { useRouter } from 'vue-router'
     import { useStore } from 'vuex'
     import { judgmentPlatform } from "@/utils/utils"
@@ -270,11 +270,14 @@
                     list.value.push(...res.data.records)
                 } else {
                     finished.value = true
+                    loading.value = false
                 }
             }).catch(err => {
                 refreshing.value = false
                 loading.value = false
                 finished.value = true
+            }).finally(() => {
+                loading.value = false
             })
         }
         one.value = true
@@ -305,10 +308,17 @@
         await proxy.$onWait;
         onLoad()
         // pageCounts()
+        // await store.dispatch('getUpcomingNum')
+        // tagList[0].num = store.state.upcomingNum.d
+        // tagList[1].num = store.state.upcomingNum.y
+        status.value = judgmentPlatform()
+    })
+
+    onActivated(async() => {
+        await proxy.$onWait;
         await store.dispatch('getUpcomingNum')
         tagList[0].num = store.state.upcomingNum.d
         tagList[1].num = store.state.upcomingNum.y
-        status.value = judgmentPlatform()
     })
 
 // const info = reactive({

--
Gitblit v1.9.3