feat(export): add text batch task performance breakdown

This commit is contained in:
tisonhuang committed 2026-03-04 21:19:10 +08:00
1 parent 7bd801cd01
commit 750d6ad7eb
4 files changed
+458 -81

No files matched your search

+1 -1
View File
@@ -276,7 +276,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
ipcRenderer.invoke('export:pauseTask', taskId),
stopTask: (taskId: string) =>
ipcRenderer.invoke('export:stopTask', taskId),
onProgress: (callback: (payload: { current: number; total: number; currentSession: string; phase: string }) => void) => {
onProgress: (callback: (payload: { current: number; total: number; currentSession: string; currentSessionId?: string; phase: string }) => void) => {
ipcRenderer.on('export:progress', (_, payload) => callback(payload))
return () => ipcRenderer.removeAllListeners('export:progress')
}