不限制最大字数

This commit is contained in:
IndieKKY
2024-01-26 13:21:10 +08:00
parent e66f85ff9f
commit d42844ac3c

View File

@@ -14,7 +14,7 @@ import {
setTotalHeight, setTotalHeight,
} from '../redux/envReducer' } from '../redux/envReducer'
import {EventBusContext} from '../Router' 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 {useInterval} from 'ahooks'
import {getWholeText} from '../util/biz_util' import {getWholeText} from '../util/biz_util'
@@ -157,7 +157,7 @@ const useSubtitleService = () => {
if (items != null) { if (items != null) {
if (envData.summarizeEnable) { // 分段 if (envData.summarizeEnable) { // 分段
let size = envData.words??WORDS_DEFAULT let size = envData.words??WORDS_DEFAULT
size = Math.min(Math.max(size, WORDS_MIN), WORDS_MAX) size = Math.max(size, WORDS_MIN)
segments = [] segments = []
let transcriptItems: TranscriptItem[] = [] let transcriptItems: TranscriptItem[] = []