林旭祥 7 mesiacov pred
rodič
commit
423e82daf8
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      src/views/train/run.vue

+ 6 - 0
src/views/train/run.vue

@@ -561,6 +561,9 @@ const returnStudent = (data: any) => {
  * 处理短跑返回被选学生
 */
 const sprintStudent = (data: any) => {
+  if (data == undefined || !data) {
+    return false;
+  }
   suspendFaceRecognitionChannels(currentTrack.value);//停止识别
   let obj = {
     result_id: resultId.value,
@@ -615,6 +618,9 @@ const longStudent = (data: any) => {
  * 重新识别指定跑道
 */
 const getRetestTrackFace = (data: any) => {
+  if (data == undefined || !data) {
+    return false;
+  }
   resumeFaceRecognitionChannels(data);//重新识别
   let obj = {
     student_id: null,