林旭祥 преди 7 месеца
родител
ревизия
423e82daf8
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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,