From d42844ac3cd777f6a2d5347f90fdd1318af60047 Mon Sep 17 00:00:00 2001 From: IndieKKY Date: Fri, 26 Jan 2024 13:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E9=99=90=E5=88=B6=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=AD=97=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useSubtitleService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useSubtitleService.ts b/src/hooks/useSubtitleService.ts index 200b927..04ebd5c 100644 --- a/src/hooks/useSubtitleService.ts +++ b/src/hooks/useSubtitleService.ts @@ -14,7 +14,7 @@ import { setTotalHeight, } from '../redux/envReducer' import {EventBusContext} from '../Router' -import {EVENT_EXPAND, TOTAL_HEIGHT_MAX, TOTAL_HEIGHT_MIN, WORDS_DEFAULT, WORDS_MAX, WORDS_MIN} from '../const' +import {EVENT_EXPAND, TOTAL_HEIGHT_MAX, TOTAL_HEIGHT_MIN, WORDS_DEFAULT, WORDS_MIN} from '../const' import {useInterval} from 'ahooks' import {getWholeText} from '../util/biz_util' @@ -157,7 +157,7 @@ const useSubtitleService = () => { if (items != null) { if (envData.summarizeEnable) { // 分段 let size = envData.words??WORDS_DEFAULT - size = Math.min(Math.max(size, WORDS_MIN), WORDS_MAX) + size = Math.max(size, WORDS_MIN) segments = [] let transcriptItems: TranscriptItem[] = []