From 02898fd2163b13317f3fbd164e80d769581ff2c1 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Wed, 13 Oct 2021 10:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/alteration/Alteration.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/user/alteration/Alteration.vue b/src/views/user/alteration/Alteration.vue index 6f410f1..f5f6cfd 100644 --- a/src/views/user/alteration/Alteration.vue +++ b/src/views/user/alteration/Alteration.vue @@ -239,15 +239,21 @@ export default { e.preventDefault() let that = this let phone = that.form.getFieldValue('phone') + let username = that.form.getFieldValue('username') if (!phone) { this.cmsFailed('手机号不能为空!') return } + if (!username) { + this.cmsFailed('用户名不能为空!') + return + } this.form.validateFields(['phone'], { force: true }, (err) => { if (!err) { const hide = this.$message.loading('验证码发送中..', 0) let smsParams = { - phone: phone + phone: phone, + userName: username } getAction('/sys/sendVerificationCode', smsParams).then(res => { if (!res.success) {