feat: 优化历史记录样式

This commit is contained in:
DLmaster361
2025-09-06 01:06:12 +08:00
parent c4cd53277f
commit 93a61232cf
4 changed files with 144 additions and 29 deletions

View File

@@ -50,6 +50,10 @@ contextBridge.exposeInMainWorld('electronAPI', {
saveLogsToFile: (logs: string) => ipcRenderer.invoke('save-logs-to-file', logs),
loadLogsFromFile: () => ipcRenderer.invoke('load-logs-from-file'),
// 文件系统操作
openFile: (filePath: string) => ipcRenderer.invoke('open-file', filePath),
showItemInFolder: (filePath: string) => ipcRenderer.invoke('show-item-in-folder', filePath),
// 监听下载进度
onDownloadProgress: (callback: (progress: any) => void) => {
ipcRenderer.on('download-progress', (_, progress) => callback(progress))