mirror of
https://github.com/QYG2297248353/IYUUPlus-Windows.git
synced 2025-12-29 08:01:35 +08:00
feat: 日志的查询与下载
This commit is contained in:
+8
-1
@@ -108,4 +108,11 @@ const visibleWindows = () => {
|
||||
}
|
||||
|
||||
|
||||
module.exports = { hideWindows, showWindows, createWindow, closeWindows, refreshWindows, rebootWindows, visibleWindows, refreshUrl };
|
||||
const downloadLocalFile = (filePath) => {
|
||||
log.info('[Download local file]: ', filePath)
|
||||
if (mainWindow) {
|
||||
mainWindow.webContents.downloadURL('file://' + filePath)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { hideWindows, showWindows, createWindow, closeWindows, refreshWindows, rebootWindows, visibleWindows, refreshUrl, downloadLocalFile };
|
||||
Reference in New Issue
Block a user