Skip to content

Commit d4fb012

Browse files
authored
feat: update RetryEncode api (#99)
1 parent cac2ff0 commit d4fb012

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/api/type.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ export interface ClearTaskResponse {
9999
}
100100

101101
export interface RetryEncodeTaskRequest {
102-
encode_param: string
103-
index: number
104-
script: string
105102
video_key: string
103+
index: number
106104
timeout?: number
107105
queue?: string
108106
[property: string]: any

src/views/Task.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import type { TaskStatus } from '@/api/type'
1515
import { useSettingStore } from '@/store/setting'
1616
import { renderIcon, renderIconButton } from '@/util/render'
1717
18-
const { encodeParam, script, clipTimeout, queueName } = storeToRefs(useSettingStore())
18+
const { clipTimeout, queueName } = storeToRefs(useSettingStore())
1919
2020
const notification = useNotification()
2121
const dialog = useDialog()
@@ -220,8 +220,6 @@ function handleRetryEncode(index: number): void {
220220
},
221221
onPositiveClick: () => {
222222
RetryEncodeTask({
223-
script: script.value,
224-
encode_param: encodeParam.value,
225223
video_key: String(taskInfo.value?.key),
226224
index: index,
227225
timeout: clipTimeout.value,

0 commit comments

Comments
 (0)