【发布时间】:2020-11-23 04:18:50
【问题描述】:
我有一个检查两件事的函数
{
$data = $request->validationData();
$exist = ApplicantUser::whereEmail($data['email'])->exists()
|| School::whereQrPathPassword($data['school_code'])->doesntExist();
return new ExistResource1(['exist' => $exist]);
}
每个字段有 2 条消息
this.$refs.observer1.setErrors({
email: this.multilinguals.texts['27'][this.getLang()],
school_code: this.multilinguals.texts['43'][this.getLang()]
})
但是当其中只有一个错误时,两个字段都显示错误。
有什么想法吗?
【问题讨论】:
标签: jquery typescript vue.js validation vee-validate