update ui

This commit is contained in:
LittleBoy 2024-12-24 14:59:07 +08:00 committed by Coding
parent 7ee5cac052
commit d294fc711b
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ export const Player = React.forwardRef<PlayerInstance, Props>((props, ref) => {
}catch (e){ }catch (e){
console.log(e) console.log(e)
} }
playerVideo.parentElement.removeChild(playerVideo) playerVideo.parentElement?.removeChild(playerVideo)
} }
}, []) }, [])
React.useImperativeHandle(ref, () => { React.useImperativeHandle(ref, () => {

View File

@ -108,7 +108,7 @@ export const VideoListItem = (
arrow={false} arrow={false}
icon={<IconWarningCircle/>} icon={<IconWarningCircle/>}
title={'你确定要删除吗?'} title={'你确定要删除吗?'}
description={`删除后需从重新${type == 'news' ? '生成' : '推流'}`} description={`删除后需从重新${type == 'create' ? '生成' : '推流'}`}
onConfirm={onRemove} onConfirm={onRemove}
><button className="hover:text-blue-500"><IconDelete/></button></Popconfirm>} ><button className="hover:text-blue-500"><IconDelete/></button></Popconfirm>}
<Checkbox checked={state.checked} onChange={() => { <Checkbox checked={state.checked} onChange={() => {