diff --git a/src/i18n/translations/zh-CN.json b/src/i18n/translations/zh-CN.json index 8417c01..b9269d9 100644 --- a/src/i18n/translations/zh-CN.json +++ b/src/i18n/translations/zh-CN.json @@ -69,12 +69,12 @@ "edit_notice_enter_article_content": "请输入正文文本内容", "edit_notice_enter_article_title": "请输入文章标题", "edit_notice_enter_article_title1": "请输入标题内容", - "edit_notice_enter_text": "请先填写文本内容", + "edit_notice_enter_text": "请先填写当前素材组", "edit_notice_keep_1": "至少保留一个内容块", "edit_other_text": "素材融合呈现编辑区", - "edit_save_failed": "保存失败,请重试!", + "edit_save_failed": "保存失败,请重试!", "edit_empty_human_content": "请先填写数字人播报内容", - "edit_empty_group_content": "正文文本和图片均不为空", + "edit_empty_group_content": "素材区的文本和图片,均不得为空", "editing": "新闻编辑", "filter_all": "全部", "filter_source": "新闻来源", diff --git a/src/pages/live/index.tsx b/src/pages/live/index.tsx index 4e43724..a6d5a4d 100644 --- a/src/pages/live/index.tsx +++ b/src/pages/live/index.tsx @@ -198,7 +198,7 @@ export default function LiveIndex() { .filter((_, index) => (index < state.activeIndex)) .reduce((sum, v) => sum + Math.ceil(v.video_duration / 1000), 0) + state.playProgress ; - }, [videoData, state.playProgress]) + }, [state.activeIndex, state.playProgress, videoData]) const currentSelectedId = useMemo(() => { if (state.activeIndex < 0 || state.activeIndex >= videoData.length) return []; @@ -209,7 +209,7 @@ export default function LiveIndex() { const currentSelectedVideoIds = useMemo(()=>{ const activeId = videoData[state.activeIndex]?.id || -1; return checkedIdArray.length == 0 ? [] : checkedIdArray.filter(id => id != activeId) - },[checkedIdArray,state.activeIndex]) + },[checkedIdArray, state.activeIndex, videoData]) return (