Skip to content

Commit 62b1b7f

Browse files
committed
fix(video): 修复 VideoEditorPage 导出设置 Dropdown 闭包变量,使用 state.setOutputFormat/setVideoQuality
1 parent 4bd3cab commit 62b1b7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/VideoEditor/VideoEditorPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ const VideoEditor = () => {
377377
{ key: 'mkv', label: 'MKV (H.264+AAC)' },
378378
{ key: 'webm', label: 'WebM (VP9+Opus)' },
379379
],
380-
onClick: ({ key }) => {
380+
onClick={({ key }: { key: string }) => {
381381
if (key === 'mp4' || key === 'mov' || key === 'mkv' || key === 'webm') {
382-
setOutputFormat(key);
382+
state.setOutputFormat(key);
383383
}
384384
}},
385385
}}

0 commit comments

Comments
 (0)