From 2837bdd57f72e386bbf9a725e7b3a13e5eb9e930 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 21 八月 2023 09:19:57 +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