Browse Source

文件类型

canghailong 5 tháng trước cách đây
mục cha
commit
05e53a84d6

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

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