|
|
@ -33,6 +33,7 @@ const Course: FC<Props> = ({id, courseId, preview, curEnd}) => { |
|
|
|
async function onEnded() { |
|
|
|
async function onEnded() { |
|
|
|
const startRecording = unique_ident.get() |
|
|
|
const startRecording = unique_ident.get() |
|
|
|
startRecording && await curriculum.curEnd(courseId, id, {...startRecording, duration: data?.duration!}) // 结束
|
|
|
|
startRecording && await curriculum.curEnd(courseId, id, {...startRecording, duration: data?.duration!}) // 结束
|
|
|
|
|
|
|
|
unique_ident.remove() |
|
|
|
|
|
|
|
|
|
|
|
if (testId) { |
|
|
|
if (testId) { |
|
|
|
if (preview) { // 预览
|
|
|
|
if (preview) { // 预览
|
|
|
|