修复脚本管理上传文件文件名乱码

This commit is contained in:
whyour
2024-04-22 22:39:27 +08:00
parent 6657ff0560
commit f723631647
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ export default (app: Router) => {
}
if (req.file) {
await fs.rename(req.file.path, join(path, req.file.filename));
await fs.rename(req.file.path, join(path, filename));
return res.send({ code: 200 });
}