diff --git a/src/core/download.ts b/src/core/download.ts index 0b72475f..cd335ab8 100644 --- a/src/core/download.ts +++ b/src/core/download.ts @@ -41,7 +41,7 @@ const getDownloadPath = (fileName?: string) => { if (!dlPath.endsWith('/')) { return `${dlPath}/${fileName ?? ''}`; } - return fileName ? dlPath : dlPath + fileName; + return fileName ? dlPath + fileName : dlPath; }; /** 从待下载中移除 */