From 9e72ccd8e8bf0362dde6e6df9410fedbf79115be Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期二, 25 二月 2025 16:53:07 +0800 Subject: [PATCH] fix: 对接 --- apps/taro/src/stores/modules/user.ts | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/apps/taro/src/stores/modules/user.ts b/apps/taro/src/stores/modules/user.ts index cab0747..f6d8ac5 100644 --- a/apps/taro/src/stores/modules/user.ts +++ b/apps/taro/src/stores/modules/user.ts @@ -36,6 +36,9 @@ virtualUserId?: string; virtualPhoneNumber?: string; + + wxCode?: string; + wxOpenId?: string; } const goAuthorization = debounce( @@ -73,6 +76,9 @@ virtualUserId: storageVirtualUser?.virtualUserId ?? '', virtualPhoneNumber: storageVirtualUser?.virtualPhoneNumber ?? '', + + wxCode: '', + wxOpenId: '', }; }, getters: { @@ -235,6 +241,13 @@ setUserDetail(detail); }, + setWxCode(code: string) { + this.wxCode = code; + }, + setWxOpenId(openId: string) { + this.wxOpenId = openId; + }, + resetState() { this.userInfo = null; this.token = ''; @@ -242,6 +255,8 @@ this.userDetail = null; this.virtualUserId = ''; this.virtualPhoneNumber = ''; + this.wxCode = ''; + this.wxOpenId = ''; removeUserInfo(); removeUserDetail(); removeStorageVirtualUserId(); -- Gitblit v1.9.1