From c2463c02a17f92df55ec77ed2da3fb724290c072 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 17:34:30 +0800
Subject: [PATCH] fix: bug
---
apps/bMiniApp/src/hooks/user.ts | 29 ++++++-----------------------
1 files changed, 6 insertions(+), 23 deletions(-)
diff --git a/apps/bMiniApp/src/hooks/user.ts b/apps/bMiniApp/src/hooks/user.ts
index 6488550..c035c72 100644
--- a/apps/bMiniApp/src/hooks/user.ts
+++ b/apps/bMiniApp/src/hooks/user.ts
@@ -11,35 +11,18 @@
const { userDetail, userInfo, locationCity } = storeToRefs(userStore);
- // function updateUserInfo() {
- // return userStore.getCurrentUserInfo();
- // }
-
- // const isCompanyAudited = computed(() => {
- // return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running;
- // });
-
- /**
- * 鏄惁瀹屽杽涓汉淇℃伅锛堜紒涓氬悕绉帮紝鎵嬫満鍙凤級
- */
- // const isCompletePersonalInfo = computed(() => {
- // return (
- // !!userDetail.value?.customerName &&
- // !!userDetail.value?.contacter &&
- // !!userDetail.value?.cityName
- // );
- // });
+ function updateUserInfo() {
+ return userStore.getCurrentUserInfo();
+ }
const isCertified = computed(() => {
- return userDetail.value?.frontStatus === UserCertificationFrontStatus.Certified;
+ return userDetail.value?.isReal;
});
return {
user: userInfo,
userDetail: userDetail,
- // updateUserInfo,
- // isCompletePersonalInfo,
- // isCompanyAudited,
+ updateUserInfo,
isCertified,
locationCity,
};
@@ -67,7 +50,7 @@
Taro.useReady(async () => {
if (isLogin.value && userStore.firstGetUserDetail) {
- // userStore.getCurrentUserInfo();
+ userStore.getCurrentUserInfo();
}
if (needAuth && !isLogin.value) {
Taro.navigateTo({
--
Gitblit v1.9.1