diff --git a/pages/passport/wechatMPLogin.vue b/pages/passport/wechatMPLogin.vue index 41d6308..20a0f1b 100644 --- a/pages/passport/wechatMPLogin.vue +++ b/pages/passport/wechatMPLogin.vue @@ -97,14 +97,13 @@ //获取code uni.login({ success: (res) => { - if(res.errMsg == "login:ok") { + if(res.errMsg === "login:ok") { that.code = res.code } else { uni.showToast({ title: "系统异常,请联系管理员!" }) } - that.code = res.code; }, });