H5失败展示图标

This commit is contained in:
北枳 2025-10-09 16:45:11 +08:00
parent 8b4604ba07
commit 5543c388e2

View File

@ -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>