From 90bd5cbde61ed972b571cf06c81fe686040f97c8 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Mon, 17 Feb 2025 14:31:32 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=B7=B3=E8=BF=87=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=90=8E=E5=8A=A0=E8=BD=BD=E6=96=B0=E9=97=BB=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../news/components/button-push2video.tsx | 44 +++---------------- 1 file changed, 5 insertions(+), 39 deletions(-) diff --git a/src/pages/news/components/button-push2video.tsx b/src/pages/news/components/button-push2video.tsx index 0970865..e5b33ad 100644 --- a/src/pages/news/components/button-push2video.tsx +++ b/src/pages/news/components/button-push2video.tsx @@ -35,6 +35,7 @@ export default function ButtonPush2Video(props: PushVideoProps) { const skip = action === ProcessResult.Skip && state.errorIds.length > 0 const ids = !skip ? props.ids : props.ids.filter(id => !state.errorIds.includes(id)); push2video(ids).then(() => { + setState({modalVisible: false}) if (skip) { props.onResult?.(ProcessResult.Skip, state.errorIds || []) return; @@ -72,45 +73,10 @@ export default function ButtonPush2Video(props: PushVideoProps) { // check article content const result = checkArticleContent() setState({modalVisible: true, errorTitle: result.errors, errorIds: result.ids}) - // - // const instance = modal.confirm({ - // title:
{t('modal.warning')}
, - // wrapClassName: 'root-modal-confirm', - // centered: true, - // width: 440, - // icon: , - // content:
- //
- // {t( - // errors && errors.length > 0 - // ? (props.ids.length == 1 ? 'modal.push_article.content_error_single' : 'modal.push_article.content_error') - // : (props.ids.length == 1 ? 'modal.push_article.content_normal_single' : 'modal.push_article.content_normal'), - // {count: props.ids.length, error_count: errors?.length})} - //
- // {errors && errors.length > 0 &&
- //
{t('modal.push_article.error_title')}:
- //
- // {errors.map(s =>
{s}
)} - //
- //
} - //
, - // footer:
- // - // - // - // - // - //
, - // }) - // handlePush(); } return (
- - {state.errorIds?.length > 0 && } - +