去除是否自动展开配置

This commit is contained in:
IndieKKY
2024-03-18 19:14:24 +08:00
parent 72c8f9608e
commit e6db674755
5 changed files with 16 additions and 16 deletions

View File

@@ -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) {