From 4693232a52b80bae962d3e32531abab524466217 Mon Sep 17 00:00:00 2001 From: ywyonui Date: Mon, 22 Sep 2025 22:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=9C=AC=E5=9C=B0openId?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=EF=BC=8C=E9=81=BF=E5=85=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 2354531..8a76186 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -160,9 +160,9 @@ export const useUserStore = defineStore({ async loginByOpenId(openId: string) { try { // 先校验当前登录的用户的openid,如果和传入的openid匹配,直接返回true - if (this.userdata && this.userdata.openId && openId && this.userdata.openId === openId) { - return true; - } + // if (this.userdata && this.userdata.openId && openId && this.userdata.openId === openId) { + // return true; + // } // 如果当前登录的用户的openid和传入的openid不匹配,则调用checkOpenId接口进行校验 const res = await checkOpenId({ openId,