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){//微信登录
     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)
   }