优化字幕复制

This commit is contained in:
IndieKKY
2024-03-18 19:17:02 +08:00
parent e6db674755
commit 2ba841c8f2
4 changed files with 15 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ interface EnvState {
data?: Transcript
uploadedTranscript?: Transcript
segments?: Segment[]
url?: string
title?: string
taskIds?: string[]
@@ -260,6 +261,9 @@ export const slice = createSlice({
setCurrentTime: (state, action: PayloadAction<number | undefined>) => {
state.currentTime = action.payload
},
setUrl: (state, action: PayloadAction<string | undefined>) => {
state.url = action.payload
},
setTitle: (state, action: PayloadAction<string | undefined>) => {
state.title = action.payload
},
@@ -288,6 +292,7 @@ export const slice = createSlice({
})
export const {
setUrl,
setAskFold,
setAskQuestion,
setAskStatus,