BUG修复

This commit is contained in:
朱浩 2025-01-10 14:16:33 +08:00
parent 5b05b6a94b
commit e40acda6ad
1 changed files with 5 additions and 0 deletions

View File

@ -359,6 +359,11 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
//下载文件 //下载文件
ipcMain.on('download-file-default', (e, { url, fileName }) => { ipcMain.on('download-file-default', (e, { url, fileName }) => {
console.log(url, fileName)
if (!url) {
e.reply('download-file-default' + fileName, false)
return;
}
createFolder('selfFile') createFolder('selfFile')
.then(async () => { .then(async () => {
const browserWindow = BrowserWindow.getFocusedWindow() const browserWindow = BrowserWindow.getFocusedWindow()