lrf402788946 4 سال پیش
والد
کامیت
db454fc55b
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/views/bind/confirm.vue

+ 5 - 0
src/views/bind/confirm.vue

@@ -62,6 +62,11 @@ export default {
       console.log(this.qrcode);
       console.log(this.type);
       console.log(this.openid);
+
+      let uid = this.uid;
+      if (_.isArray(uid)) {
+        uid = _.head(uid);
+      }
       const res = await this.userBind({ uid: this.uid, openid: this.openid, qrcode: this.qrcode, type: this.type });
       if (res.errcode === 0) {
         this.$toast({ type: 'success', message: '绑定成功' });