diff --git a/src/hooks/useSubtitleService.ts b/src/hooks/useSubtitleService.ts
index b508f64..1328288 100644
--- a/src/hooks/useSubtitleService.ts
+++ b/src/hooks/useSubtitleService.ts
@@ -106,13 +106,13 @@ const useSubtitleService = () => {
}
}, [eventBus, infos])
- // 当前未展示 & (未折叠 | 自动展开) & 有列表 => 展示第一个
+ // 当前未展示 & 未折叠 & 有列表 => 展示第一个
useEffect(() => {
- if (!curInfo && (!fold || (envReady && envData.autoExpand)) && (infos != null) && infos.length > 0) {
+ if (!curInfo && !fold && (infos != null) && infos.length > 0) {
dispatch(setCurInfo(infos[0]))
dispatch(setCurFetched(false))
}
- }, [curInfo, dispatch, envData.autoExpand, envReady, fold, infos])
+ }, [curInfo, dispatch, envReady, fold, infos])
// 获取
useEffect(() => {
if (curInfo && !curFetched) {
diff --git a/src/redux/envReducer.ts b/src/redux/envReducer.ts
index b88f5b2..736b781 100644
--- a/src/redux/envReducer.ts
+++ b/src/redux/envReducer.ts
@@ -53,7 +53,7 @@ const initialState: EnvState = {
serverUrl: SERVER_URL_OPENAI,
translateEnable: true,
summarizeEnable: true,
- autoExpand: true,
+ // autoExpand: true,
theme: 'light',
searchEnabled: true,
},
diff --git a/src/typings.d.ts b/src/typings.d.ts
index 58d5888..9fa6505 100644
--- a/src/typings.d.ts
+++ b/src/typings.d.ts
@@ -1,5 +1,5 @@
interface EnvData {
- autoExpand?: boolean
+ // autoExpand?: boolean
flagDot?: boolean
aiType?: 'openai' | 'gemini'