From d69973bf32d63a3638b799866426f817b0193e10 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 18 九月 2025 14:07:00 +0800
Subject: [PATCH] fix: bug

---
 apps/cMiniApp/src/pages/mine/index.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/apps/cMiniApp/src/pages/mine/index.vue b/apps/cMiniApp/src/pages/mine/index.vue
index d92cf10..d4fb9ca 100644
--- a/apps/cMiniApp/src/pages/mine/index.vue
+++ b/apps/cMiniApp/src/pages/mine/index.vue
@@ -132,11 +132,12 @@
 import { useSystemStore } from '@/stores/modules/system';
 import PageLayoutWithBg from '@/components/Layout/PageLayoutWithBg.vue';
 import { toThousand } from '@12333/utils';
+import { useIntervalFn } from 'senin-mini/hooks';
 
 const { userDetail, isCertified, updateUserInfo } = useUser();
 const isLogin = useIsLogin();
 const systemStore = useSystemStore();
-
+const { stop, start } = useIntervalFn(updateUserInfo, 1000);
 const { goLoginFn } = useGoLogin();
 const bgHeight = computed(() => 133 + systemStore.navHeight);
 
@@ -145,9 +146,18 @@
     setTimeout(() => {
       updateUserInfo();
     }, 300);
+    if (userDetail.value?.realStatus === EnumPersonalUserRealStatus.Checking) {
+      start();
+    } else {
+      stop();
+    }
   }
 });
 
+Taro.useDidHide(() => {
+  stop();
+});
+
 function goLogin() {
   if (!isLogin.value) {
     goLoginFn();

--
Gitblit v1.9.1