guhongwei 4 년 전
부모
커밋
a6d76d3312
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/bind/bind.vue

+ 2 - 2
src/views/bind/bind.vue

@@ -46,7 +46,7 @@ export default {
     async onSubmit(form) {
       form.openid = this.openid;
       let res = await this.bind(form);
-      if (this.$checkRes(res)) {
+      if (res.errcode === 0) {
         this.$notify({
           message: '绑定成功',
           type: 'success',
@@ -56,7 +56,7 @@ export default {
       } else {
         this.$notify({
           message: res.errmsg,
-          type: 'error',
+          type: 'danger',
         });
       }
     },