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 { GlassIconButton } from '@/components/ui/glass-icon-button';
|
||||||
import { downloadVideo, downloadAllVideos, getFirstFrame } from '@/utils/tools';
|
import { downloadVideo, downloadAllVideos, getFirstFrame } from '@/utils/tools';
|
||||||
import { Drawer } from 'antd';
|
import { Drawer } from 'antd';
|
||||||
|
import error_image from '@/public/assets/error.webp';
|
||||||
|
|
||||||
interface H5MediaViewerProps {
|
interface H5MediaViewerProps {
|
||||||
/** 任务对象,包含各阶段数据 */
|
/** 任务对象,包含各阶段数据 */
|
||||||
@ -263,9 +264,9 @@ export function H5MediaViewer({
|
|||||||
<span className="text-blue-500 text-base">Generating...</span>
|
<span className="text-blue-500 text-base">Generating...</span>
|
||||||
)}
|
)}
|
||||||
{status === 2 && (
|
{status === 2 && (
|
||||||
<div className="flex flex-col items-center justify-center gap-3">
|
<div className="flex flex-col items-center justify-center gap-1">
|
||||||
<div className="text-4xl">⚠️</div>
|
<img src={error_image.src} alt="error" className="w-12 h-12" />
|
||||||
<span className="text-red-500 text-base">Generate failed</span>
|
<span className="text-[#fa485f] text-base">Generate failed</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{status !== 0 && status !== 2 && (
|
{status !== 0 && status !== 2 && (
|
||||||
@ -314,9 +315,9 @@ export function H5MediaViewer({
|
|||||||
<span className="text-blue-500 text-base">Generating...</span>
|
<span className="text-blue-500 text-base">Generating...</span>
|
||||||
)}
|
)}
|
||||||
{status === 2 && (
|
{status === 2 && (
|
||||||
<div className="flex flex-col items-center justify-center gap-3">
|
<div className="flex flex-col items-center justify-center gap-1">
|
||||||
<div className="text-4xl">⚠️</div>
|
<img src={error_image.src} alt="error" className="w-12 h-12" />
|
||||||
<span className="text-red-500 text-base">Generate failed</span>
|
<span className="text-[#fa485f] text-base">Generate failed</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user