feat: 绿幕视频创建和微课视频创建

This commit is contained in:
2024-08-17 17:56:35 +08:00
parent 24629f8720
commit e48a744f60
14 changed files with 797 additions and 41 deletions

View File

@@ -41,7 +41,6 @@ watchEffect(() => {
})
const onCreateCourseSubmit = async (event: FormSubmitEvent<CreateCourseSchema>) => {
console.log(event.data)
if (!selected_file.value) {
toast.add({
title: '未选择文件',
@@ -167,6 +166,11 @@ const onCreateCourseSubmit = async (event: FormSubmitEvent<CreateCourseSchema>)
</div>
<UFormGroup label="PPT 文件" required>
<template #help>
<p class="text-xs text-neutral-400">
仅支持 .pptx 格式
</p>
</template>
<FileDnD
accept="application/vnd.openxmlformats-officedocument.presentationml.presentation"
@change="file => selected_file = file"