保存列表/文章视图选择

This commit is contained in:
IndieKKY
2024-01-20 10:19:47 +08:00
parent 728e4dce84
commit 8098d7cf9b
5 changed files with 13 additions and 13 deletions

View File

@@ -17,7 +17,6 @@ interface EnvState {
autoScroll?: boolean
checkAutoScroll?: boolean
curOffsetTop?: number
compact?: boolean // 是否紧凑视图
floatKeyPointsSegIdx?: number // segment的startIdx
noVideo?: boolean
@@ -81,7 +80,7 @@ export const slice = createSlice({
setEnvReady: (state) => {
state.envReady = true
},
setTempData: (state, action: PayloadAction<TempData>) => {
setTempData: (state, action: PayloadAction<Partial<TempData>>) => {
state.tempData = {
...state.tempData,
...action.payload,
@@ -102,9 +101,6 @@ export const slice = createSlice({
setFoldAll: (state, action: PayloadAction<boolean>) => {
state.foldAll = action.payload
},
setCompact: (state, action: PayloadAction<boolean>) => {
state.compact = action.payload
},
setPage: (state, action: PayloadAction<string | undefined>) => {
state.page = action.payload
},
@@ -275,7 +271,6 @@ export const {
setCurOffsetTop,
setFloatKeyPointsSegIdx,
setFoldAll,
setCompact,
setSegmentFold,
setSummaryContent,
setSummaryStatus,