Commit 3fc2dbee by yuananting

fix:解决无考试时防止重名循环报错的问题

parent 23bf0c78
...@@ -277,7 +277,7 @@ function AddExam(props: any) { ...@@ -277,7 +277,7 @@ function AddExam(props: any) {
// 校验考试名称是否存在 // 校验考试名称是否存在
function checkExist(examName: any) { function checkExist(examName: any) {
var result:any = null; var result:any = null;
examList.forEach((item:any) => { examList.length > 0 && examList.forEach((item:any) => {
if (result != null) { if (result != null) {
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment