fixed: ts build error

This commit is contained in:
LittleBoy 2024-12-24 00:14:07 +08:00
parent 6603bbf75f
commit f21e8050b2

View File

@ -158,7 +158,7 @@ export default function ArticleEditModal(props: Props) {
</div>
<div className="modal-control-footer flex justify-end">
<div className="text-lg flex gap-10 ">
{props.type == 'news' && props.id > 0 ? <button className="text-gray-400 hover:text-gray-800" onClick={handlePush2Video}>{state.generating?'推送中...':'生成视频'}</button> : null}
{props.type == 'news' && props.id ? <button className="text-gray-400 hover:text-gray-800" onClick={handlePush2Video}>{state.generating?'推送中...':'生成视频'}</button> : null}
<button className="text-gray-400 hover:text-gray-800" onClick={() => props.onClose?.()}></button>
<button onClick={handleSave} className="text-gray-800 hover:text-blue-500">{props.type == 'news' ? '确定' : '重新生成'}</button>
</div>