We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51d3d4 commit fa59035Copy full SHA for fa59035
uview-ui/components/u-form/u-form.vue
@@ -98,7 +98,7 @@ export default {
98
if (++count === this.fields.length) {
99
resolve(valid); // 进入promise的then方法
100
// 判断是否设置了toast的提示方式,只提示最前面的表单域的第一个错误信息
101
- if(this.errorType.indexOf('none') === -1 && this.errorType.indexOf('toast') >= 0) {
+ if(this.errorType.indexOf('none') === -1 && this.errorType.indexOf('toast') >= 0 && errorArr.length) {
102
this.$u.toast(errorArr[0]);
103
}
104
// 调用回调方法
0 commit comments