1
This commit is contained in:
@@ -13,6 +13,8 @@ const electronAPI = {
|
||||
showSaveDialog: (options: any) => ipcRenderer.invoke('show-save-dialog', options),
|
||||
// 添加文件夹选择对话框 API
|
||||
showOpenDialog: (options: any) => ipcRenderer.invoke('show-open-dialog', options),
|
||||
// 添加文件写入 API
|
||||
writeFile: (filePath: string, data: Uint8Array) => ipcRenderer.invoke('write-file', filePath, data),
|
||||
|
||||
onDownloadProgress: (callback: (progress: any) => void) => {
|
||||
ipcRenderer.on('download-progress', (event, progress) => callback(progress))
|
||||
|
||||
Reference in New Issue
Block a user