forked from 77media/video-flow
H5失败展示图标
This commit is contained in:
parent
8b4604ba07
commit
5543c388e2
@ -10,6 +10,7 @@ import ScriptLoading from './script-loading';
|
||||
import { GlassIconButton } from '@/components/ui/glass-icon-button';
|
||||
import { downloadVideo, downloadAllVideos, getFirstFrame } from '@/utils/tools';
|
||||
import { Drawer } from 'antd';
|
||||
import error_image from '@/public/assets/error.webp';
|
||||
|
||||
interface H5MediaViewerProps {
|
||||
/** 任务对象,包含各阶段数据 */
|
||||
@ -263,9 +264,9 @@ export function H5MediaViewer({
|
||||
<span className="text-blue-500 text-base">Generating...</span>
|
||||
)}
|
||||
{status === 2 && (
|
||||
<div className="flex flex-col items-center justify-center gap-3">
|
||||
<div className="text-4xl">⚠️</div>
|
||||
<span className="text-red-500 text-base">Generate failed</span>
|
||||
<div className="flex flex-col items-center justify-center gap-1">
|
||||
<img src={error_image.src} alt="error" className="w-12 h-12" />
|
||||
<span className="text-[#fa485f] text-base">Generate failed</span>
|
||||
</div>
|
||||
)}
|
||||
{status !== 0 && status !== 2 && (
|
||||
@ -314,9 +315,9 @@ export function H5MediaViewer({
|
||||
<span className="text-blue-500 text-base">Generating...</span>
|
||||
)}
|
||||
{status === 2 && (
|
||||
<div className="flex flex-col items-center justify-center gap-3">
|
||||
<div className="text-4xl">⚠️</div>
|
||||
<span className="text-red-500 text-base">Generate failed</span>
|
||||
<div className="flex flex-col items-center justify-center gap-1">
|
||||
<img src={error_image.src} alt="error" className="w-12 h-12" />
|
||||
<span className="text-[#fa485f] text-base">Generate failed</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user