请求响应错误统一处理

This commit is contained in:
sfmind
2022-04-21 01:46:45 +08:00
parent 713817d0f1
commit e9c0c452c8
7 changed files with 38 additions and 57 deletions

View File

@ -78,12 +78,9 @@ export default {
})
},
handleSubmit() {
this.$refs.form
.validate()
.then(res => {
uni.$u.toast('点击了注册账号')
})
.catch(err => {})
this.$refs.form.validate().then(res => {
uni.$u.toast('点击了注册账号')
})
},
navigateBack() {
uni.navigateBack()