mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复新建文件
This commit is contained in:
+3
-1
@@ -81,7 +81,9 @@ export default (app: Router) => {
|
||||
data: '文件路径禁止访问',
|
||||
});
|
||||
}
|
||||
|
||||
if (!originFilename) {
|
||||
originFilename = filename;
|
||||
}
|
||||
const originFilePath = `${path}${originFilename.replace(/\//g, '')}`;
|
||||
const filePath = `${path}${filename.replace(/\//g, '')}`;
|
||||
if (fs.existsSync(originFilePath)) {
|
||||
|
||||
Reference in New Issue
Block a user