diff --git a/uni_modules/uni-login-page/pages/register/register.vue b/uni_modules/uni-login-page/pages/register/register.vue index 97443f12716931a48201b1f290e0e80bce5974f5..5802955d0ad5bc378e1fbae8e371411058968afe 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);