跳转评论

This commit is contained in:
IndieKKY
2024-09-19 15:08:15 +08:00
parent 1f1d48b56a
commit be6b94164d
16 changed files with 3174 additions and 2329 deletions

View File

@@ -48,6 +48,9 @@ interface EnvState {
searchText: string
searchResult: Set<number>
//当前视频是否计算过操作
reviewAction: boolean
}
const initialState: EnvState = {
@@ -77,6 +80,8 @@ const initialState: EnvState = {
searchResult: new Set(),
asks: [],
reviewAction: false,
}
export const slice = createSlice({
@@ -98,6 +103,9 @@ export const slice = createSlice({
...action.payload,
}
},
setReviewAction: (state, action: PayloadAction<boolean>) => {
state.reviewAction = action.payload
},
setTempReady: (state) => {
state.tempReady = true
},
@@ -319,6 +327,7 @@ export const {
setAutoTranslate,
setAutoScroll,
setNoVideo,
setReviewAction,
setNeedScroll,
setCurIdx,
setEnvData,