Browse Source

fix: 手机验证码归0不重置问题

ChenYangfan 6 năm trước cách đây
mục cha
commit
4185c40898
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/components/PDF/Pdf.vue
  2. 1 1
      src/views/register/Register.vue

+ 1 - 1
src/components/PDF/Pdf.vue

@@ -43,7 +43,7 @@ export default {
     }),
     classList () {
       return {
-        'full-size': this.showDiscussion
+        'full-size': !this.showDiscussion
       }
     }
   },

+ 1 - 1
src/views/register/Register.vue

@@ -179,7 +179,7 @@ export default {
         this.phoneButtonContent--
         if (typeof this.phoneButtonContent !== typeof 0 || this.phoneButtonContent <= 0) {
           clearInterval(this._phoneCodeCdInterval)
-          this._phoneCodeCdInterval = '发送验证码'
+          this.phoneButtonContent = '发送验证码'
         }
       }, 1000)
     }