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