代码支持
Some checks failed
Deploy to Server / deploy (push) Has been cancelled

This commit is contained in:
jeremygan2021
2026-03-01 17:39:36 +08:00
parent b31e8fff09
commit 84e30d26af
10 changed files with 97 additions and 17 deletions

View File

@@ -238,7 +238,12 @@ const VCCourseDetail = () => {
position: 'relative',
aspectRatio: '16/9'
}}>
{course.video_url ? (
{course.video_embed_code ? (
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: course.video_embed_code }}
/>
) : course.video_url ? (
<video
src={course.video_url}
controls