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