forked from 77media/video-flow
修复兼容历史数据
This commit is contained in:
parent
daf9ca126c
commit
94cd1c92be
@ -244,7 +244,7 @@ export const ShotTabContent = (props: ShotTabContentProps) => {
|
||||
<Loader2 className="w-4 h-4 animate-spin text-blue-500" />
|
||||
</div>
|
||||
)}
|
||||
{shot.status === 1 && (
|
||||
{shot.status === 1 && shot.videoUrl[0] ? (
|
||||
<video
|
||||
src={shot.videoUrl[0].video_url}
|
||||
className="w-full h-full object-cover"
|
||||
@ -254,6 +254,10 @@ export const ShotTabContent = (props: ShotTabContentProps) => {
|
||||
onMouseEnter={(e) => e.currentTarget.play()}
|
||||
onMouseLeave={(e) => e.currentTarget.pause()}
|
||||
/>
|
||||
) : (
|
||||
<div className="w-full h-full flex items-center justify-center bg-red-500/10">
|
||||
<CircleX className="w-4 h-4 text-red-500" />
|
||||
</div>
|
||||
)}
|
||||
{/* 任务失败 */}
|
||||
{shot.status === 2 && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user