From d294fc711bcb2d8b1dbc34d32f410cd6233c1074 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Tue, 24 Dec 2024 14:59:07 +0800 Subject: [PATCH] update ui --- src/components/video/player.tsx | 2 +- src/components/video/video-list-item.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/video/player.tsx b/src/components/video/player.tsx index 8573eb9..213bc66 100644 --- a/src/components/video/player.tsx +++ b/src/components/video/player.tsx @@ -105,7 +105,7 @@ export const Player = React.forwardRef((props, ref) => { }catch (e){ console.log(e) } - playerVideo.parentElement.removeChild(playerVideo) + playerVideo.parentElement?.removeChild(playerVideo) } }, []) React.useImperativeHandle(ref, () => { diff --git a/src/components/video/video-list-item.tsx b/src/components/video/video-list-item.tsx index 124da78..b38b1e9 100644 --- a/src/components/video/video-list-item.tsx +++ b/src/components/video/video-list-item.tsx @@ -108,7 +108,7 @@ export const VideoListItem = ( arrow={false} icon={} title={'你确定要删除吗?'} - description={`删除后需从重新${type == 'news' ? '生成' : '推流'}`} + description={`删除后需从重新${type == 'create' ? '生成' : '推流'}`} onConfirm={onRemove} >} {