mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
修复新建文件
This commit is contained in:
parent
265760146f
commit
900d279bf6
|
@ -81,7 +81,9 @@ export default (app: Router) => {
|
||||||
data: '文件路径禁止访问',
|
data: '文件路径禁止访问',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!originFilename) {
|
||||||
|
originFilename = filename;
|
||||||
|
}
|
||||||
const originFilePath = `${path}${originFilename.replace(/\//g, '')}`;
|
const originFilePath = `${path}${originFilename.replace(/\//g, '')}`;
|
||||||
const filePath = `${path}${filename.replace(/\//g, '')}`;
|
const filePath = `${path}${filename.replace(/\//g, '')}`;
|
||||||
if (fs.existsSync(originFilePath)) {
|
if (fs.existsSync(originFilePath)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user