Refactor skip intro/outro to global settings instead of per-book

Settings are now stored as top-level user settings in localStorage
rather than nested under bookSkipSettings per libraryItemId. This
makes the settings always accessible regardless of playback state.
This commit is contained in:
Lunatic 2026-02-27 15:19:46 +08:00
parent d157388680
commit 8a34eff1e9
3 changed files with 26 additions and 54 deletions

View file

@ -19,7 +19,10 @@ export const state = () => ({
authorSortDesc: false,
jumpForwardAmount: 10,
jumpBackwardAmount: 10,
bookSkipSettings: {} // 书籍跳过配置 { [libraryItemId]: { skipIntro, introDuration, skipOutro, outroDuration } }
skipIntro: false,
introDuration: 10,
skipOutro: false,
outroDuration: 10
}
})