| | |
| | | |
| | | const { userDetail, userInfo, locationCity } = storeToRefs(userStore); |
| | | |
| | | // function updateUserInfo() { |
| | | // return userStore.getCurrentUserInfo(); |
| | | // } |
| | | function updateUserInfo() { |
| | | return userStore.getCurrentUserInfo(); |
| | | } |
| | | |
| | | // const isCompanyAudited = computed(() => { |
| | | // return userDetail.value?.openHRSiteStatus === ParkOrHRStatus.Running; |
| | |
| | | // }); |
| | | |
| | | const isCertified = computed(() => { |
| | | return false; |
| | | return userDetail.value?.isReal; |
| | | }); |
| | | |
| | | return { |
| | | user: userInfo, |
| | | userDetail: userDetail, |
| | | // updateUserInfo, |
| | | updateUserInfo, |
| | | // isCompletePersonalInfo, |
| | | // isCompanyAudited, |
| | | isCertified, |
| | |
| | | |
| | | Taro.useReady(async () => { |
| | | if (isLogin.value && userStore.firstGetUserDetail) { |
| | | // userStore.getCurrentUserInfo(); |
| | | userStore.getCurrentUserInfo(); |
| | | } |
| | | if (needAuth && !isLogin.value) { |
| | | Taro.navigateTo({ |