Commit 7c03631c authored by Administrator's avatar Administrator

优化一下提示

parent 065fa1b8
...@@ -201,13 +201,19 @@ const handleUploadShowImageOrVideoRemove: UploadProps['onRemove'] = (file, uploa ...@@ -201,13 +201,19 @@ const handleUploadShowImageOrVideoRemove: UploadProps['onRemove'] = (file, uploa
// 生成视频 // 生成视频
const onGenVideo = async () => { const onGenVideo = async () => {
if ( if (
!form.text || !form.text || form.text.length == 0
form.text.length == 0 ||
!form.sample_video_path ||
form.sample_video_path.length == 0
) { ) {
ElMessage({ ElMessage({
message: '文案、出镜人物 均不能为空', message: '请输入文案',
type: 'error'
})
return
}
if (
!form.sample_video_path || form.sample_video_path.length == 0
) {
ElMessage({
message: '请上传出镜人物视频',
type: 'error' type: 'error'
}) })
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment