|
@@ -106,7 +106,7 @@ async function handleWxlogin(wxAppId:string) {
|
|
|
if(!openId && !code){//微信登录
|
|
|
getWeChatCode(wxAppId)
|
|
|
}else if(code){//存在code 换取openid
|
|
|
- const res = wxLogin({code,orderSn})
|
|
|
+ const res = wxLogin({code,orderSn:orderSn.value})
|
|
|
setUserData(res.openId,'openId')
|
|
|
console.log('wxLogin', res)
|
|
|
}
|