소스 검색

文件类型

canghailong 5 달 전
부모
커밋
05e53a84d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/student/classCentre/index.vue

+ 1 - 1
src/views/student/classCentre/index.vue

@@ -330,7 +330,7 @@
 				hourId: classHourData.value?.id
 			})
 			.then((data) => {
-				if (data.endTime) {
+				if (data?.endTime) {
 					initialtime.value = parseFloat(data.endTime) / 1000
 					currentTimenew.value = parseFloat(data.endTime) / 1000
 				}