You've already forked bilibili-subtitle
跳转评论
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user