From bcbdac6673fe646c15f4bba1ad75119f99a924c4 Mon Sep 17 00:00:00 2001 From: callmeyan Date: Tue, 8 Apr 2025 23:06:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=EF=B8=8F=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E7=BC=96=E8=BE=91=E6=A8=A1=E6=80=81=E6=A1=86?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=B8=83=E5=B1=80=EF=BC=8C=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E5=8C=BA=E7=A9=BA=E5=86=85=E5=AE=B9=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/article/edit-modal.tsx | 11 +++++++---- src/components/article/group.tsx | 2 +- src/i18n/translations/zh-CN.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/article/edit-modal.tsx b/src/components/article/edit-modal.tsx index 6d81d04..e7c8e23 100644 --- a/src/components/article/edit-modal.tsx +++ b/src/components/article/edit-modal.tsx @@ -242,10 +242,13 @@ export default function ArticleEditModal(props: Props) { okText={props.type == 'news' ? t('confirm_text') : t('news.edit_generate_video_again')} >
- { - setTitle(e.target.value) - setState({msgTitle: e.target.value ? '' : t('news.edit_notice_enter_article_title1')}) - }} placeholder={t('news.edit_notice_enter_article_title')}/> +
+ {t('news.title')} + { + setTitle(e.target.value) + setState({msgTitle: e.target.value ? '' : t('news.edit_notice_enter_article_title1')}) + }} placeholder={t('news.edit_notice_enter_article_title')}/> +
{state.msgTitle}
diff --git a/src/components/article/group.tsx b/src/components/article/group.tsx index edfb24c..0488260 100644 --- a/src/components/article/group.tsx +++ b/src/components/article/group.tsx @@ -61,7 +61,7 @@ export default function ArticleGroup({groups, editable, onChange, errorMessage, {t('news.edit_digital_text')} {i18n.language == 'zh-CN' && (出现数字人形象)}
-
+
{/* value={groups || groups[0][0].content}*/}
diff --git a/src/i18n/translations/zh-CN.json b/src/i18n/translations/zh-CN.json index 1abec2e..78f05ee 100644 --- a/src/i18n/translations/zh-CN.json +++ b/src/i18n/translations/zh-CN.json @@ -92,7 +92,7 @@ "edit_delete_group": "删除此分组", "edit_delete_group_confirm": "请确认删除此分组?", "edit_digital_text": "数字人主播台编辑区", - "edit_empty_group_content": "素材区的文本和图片,均不得为空", + "edit_empty_group_content": "如仅需数字人播报,请勿在素材融合区填写内容;如需展示图文信息,素材融合区的文本、图片均不得为空", "edit_empty_human_content": "请先填写数字人播报内容", "edit_form_search": "请输入新闻标题关键词进行搜索", "edit_generate_again": "重新生成",