@@ -116,7 +116,8 @@ async function handleWxlogin(wxAppId: string) {
} else if (code) {
//存在code 换取openid
const res = await wxLogin({ code, orderSn: orderSn.value })
- if (!res.errmsg) {
+ console.log('openid',res)
+ if (res.openid) {
setUserOpenId(res.openid)
}