fix: file ext and blank data

This commit is contained in:
手瓜一十雪
2024-08-20 20:03:02 +08:00
parent 9eb850a6ab
commit f55a9066cc
2 changed files with 2 additions and 1 deletions

View File

@@ -259,7 +259,7 @@ export async function uri2local(dir: string, uri: string, filename: string | und
if (success) {
filePath = fileTypePath;
fileExt = ext;
filename = path.basename(filePath, fileExt);
filename = filename + '.' + ext;
}
return { success: true, errMsg: '', fileName: filename, ext: fileExt, path: filePath, isLocal: true };
}