From 3d1a4b4bf3d37e29a3d3345e00f9f84c0d7959a6 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期一, 21 八月 2023 09:16:05 +0800
Subject: [PATCH] 改bug

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

diff --git a/h5_standard/src/views/tabPage/toBeHandled.vue b/h5_standard/src/views/tabPage/toBeHandled.vue
index 0fc2b4b..4da7c81 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"
@@ -275,6 +275,8 @@
                 refreshing.value = false
                 loading.value = false
                 finished.value = true
+            }).finally(() => {
+                loading.value = false
             })
         }
         one.value = true
@@ -305,10 +307,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