From c4db0ed5c4218dba29c9924511dc2bbcf169d468 Mon Sep 17 00:00:00 2001
From: zym2525 <540361168@qq.com>
Date: 星期日, 09 三月 2025 09:16:27 +0800
Subject: [PATCH] fix: some

---
 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