|
|
@@ -2525,11 +2525,12 @@ const handleHomeworkSubmit = async () => {
|
|
|
message.info(lang.ssHwNoFunc)
|
|
|
}
|
|
|
else {
|
|
|
+ const element = elementList.value.find((i:any) => i.type === 'frame')
|
|
|
api.addPPTOp2({
|
|
|
id: props.courseid,
|
|
|
userid: props.userid || '',
|
|
|
type: '3',
|
|
|
- index: currentSlide.value.id, // 获取当前ppt页面的id
|
|
|
+ index: (element as any).id, // 获取当前ppt页面iframe的id
|
|
|
data: String(Math.max(0, Math.round((Date.now() - slideEnterTime.value) / 1000))), // 进入作业页面到提交的耗时(秒)
|
|
|
}).then(res => {
|
|
|
console.log('res', res)
|