Skip to content

A full-featured download manager.

fix: get task full path error when file path empty

Dr_rOot829eb83a4c2f
diff --git a/src/shared/utils.js b/src/shared/utils.js
index 73bcf464..7b25c8cb 100644
--- a/src/shared/utils.js
+++ b/src/shared/utils.js
@@ -154,7 +154,7 @@ export function getTaskFullPath (task) {
}
const [file] = files
- const path = resolve(file.path)
+ const path = file.path ? resolve(file.path) : ''
let fileName = ''
if (path) {