From 5eb6e6bab29554390851bbed86615110e62efa48 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期一, 11 八月 2025 13:43:18 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- apps/cMiniApp/src/stores/modules/user.ts | 30 +++++++++++++++++------------- 1 files changed, 17 insertions(+), 13 deletions(-) diff --git a/apps/cMiniApp/src/stores/modules/user.ts b/apps/cMiniApp/src/stores/modules/user.ts index d49e137..21cf5ab 100644 --- a/apps/cMiniApp/src/stores/modules/user.ts +++ b/apps/cMiniApp/src/stores/modules/user.ts @@ -87,6 +87,10 @@ accountInfo(): Partial<AccountInfo> { return getAccountInfoFromAccessToken(this.userInfo?.accessToken); }, + + userId: (state) => { + return state.userInfo?.id ?? ''; + }, }, actions: { // 鎵嬫満鍙锋巿鏉僀ode鐧诲綍 @@ -188,19 +192,19 @@ }, async getCurrentUserInfo() { - try { - let res = await userServices.getUserInfo({ showLoading: false }); - if (res) { - // res.frontStatus = getUserCertificationFrontStatusAdapter( - // res.userCertificationStatus, - // res.userCertificationAuditStatus - // ); - // res.originalAvatarUrl = res.avatarUrl; - // res.avatarUrl = res.avatarUrl ? setOSSLink(res.avatarUrl) : DefaultAvatar; - // this.setUserDetail(res); - // this.firstGetUserDetail = false; - } - } catch (error) {} + // try { + // let res = await userServices.getUserInfo({ showLoading: false }); + // if (res) { + // res.frontStatus = getUserCertificationFrontStatusAdapter( + // res.userCertificationStatus, + // res.userCertificationAuditStatus + // ); + // res.originalAvatarUrl = res.avatarUrl; + // res.avatarUrl = res.avatarUrl ? setOSSLink(res.avatarUrl) : DefaultAvatar; + // this.setUserDetail(res); + // this.firstGetUserDetail = false; + // } + // } catch (error) {} }, setTokenAction(tokenInfo: API.LoginCommandCallback) { -- Gitblit v1.9.1