From 98bcc6ad603cc7281f3410ed61ebdf29465591b8 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 16:29:07 +0800
Subject: [PATCH] Merge branch 'dev-1.2.0.1' of http://120.26.58.240:8888/r/flexJobMiniApp into dev-1.2.0.1
---
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 28b1083..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 false;
+ 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