feat: 类型规范
This commit is contained in:
1 parent
dec9b477e0
commit
d626f872e6
16 files changed
+119
-173
No files matched your search
+1
-1
@@ -190,7 +190,7 @@ export async function uriToLocalFile(dir: string, uri: string, filename: string
|
||||
}
|
||||
|
||||
case FileUriType.Remote: {
|
||||
const buffer = await httpDownload({ url: HandledUri, headers: headers });
|
||||
const buffer = await httpDownload({ url: HandledUri, headers: headers ?? {} });
|
||||
fs.writeFileSync(filePath, buffer);
|
||||
return { success: true, errMsg: '', fileName: filename, path: filePath };
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user