every改some

This commit is contained in:
shijingjing
2022-09-28 09:27:43 +08:00
parent 147b0a84f3
commit e76206dd9b

View File

@@ -596,7 +596,7 @@ export default {
if(this.people.length != this.form.companionCount) {
return this.$u.toast('请输入完整的同行人信息')
} else {
if(this.people.every(val=> (val.name=='') || (val.phone=='')) ) {
if(this.people.some(val=> (val.name=='') || (val.phone=='')) ) {
return this.$u.toast('请输入完整的同行人信息')
} else {
this.form.companionList = this.people