src/views/connectUs/components/consult.vue
@@ -107,13 +107,11 @@ }, //获取验证码 getCode() { let loginName = JSON.parse(sessionStorage.getItem("userInfo")).username; this.codeDisabled = true; this.getValidStr(); this.timer = setInterval(this.getValidStr, 1000); getVerifyCode({ phoneNum: this.formData.phoneNum, username: loginName, }).then(() => { this.gotCode = true; });