tangning 2 سال پیش
والد
کامیت
b736265872
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/views/mobile/index.vue

+ 1 - 1
src/views/mobile/index.vue

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