From 1dc56d7bc84af82d1d78275ee130adc786c82c72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Wed, 21 Apr 2021 16:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-login-page/pages/register/register.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/uni_modules/uni-login-page/pages/register/register.vue b/uni_modules/uni-login-page/pages/register/register.vue index 97443f12..5802955d 100644 --- a/uni_modules/uni-login-page/pages/register/register.vue +++ b/uni_modules/uni-login-page/pages/register/register.vue @@ -78,16 +78,15 @@ * 触发表单提交 */ submit() { - if(this.formData.pwd != this.formData.pwd2)return uni.showToast({ - title: '两次输入密码不一致', - icon: 'none' - }); uni.showLoading({ mask: true }) this.$refs.form.submit().then((res) => { - console.log(res); + if(res.pwd != res.pwd2)return uni.showToast({ + title: '两次输入密码不一致', + icon: 'none' + }); this.submitForm(res) }).catch((errors) => { console.log(errors); -- GitLab