jack 3 weeks ago
parent
commit
7308f10ee7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/index.html

+ 2 - 2
public/index.html

@@ -1261,14 +1261,14 @@
             const CompetitionType = document.getElementById('CompetitionType');
             const CompetitionType = document.getElementById('CompetitionType');
             if (!idNumber.value && !CompetitionType.value) {
             if (!idNumber.value && !CompetitionType.value) {
                 alert('请选择比赛类型和填写身份证号');
                 alert('请选择比赛类型和填写身份证号');
-                e.target.value = ''; // 清空已选择的文件
+                //e.target.value = ''; // 清空已选择的文件
                 return;
                 return;
             }
             }
             if (uploadFileUrl1 == "") {
             if (uploadFileUrl1 == "") {
                 alert('请上传报名文件');
                 alert('请上传报名文件');
                 return;
                 return;
             }
             }
-            if (CompetitionType.value == 2) {
+            if (CompetitionType.value == 2 && document.getElementById("videoUploadDiv").style.display == "block") {
                 if (uploadVideoUrl == "") {
                 if (uploadVideoUrl == "") {
                     alert('请上传智能体视频');
                     alert('请上传智能体视频');
                     return;
                     return;