后台:清理未使用的字段

This commit is contained in:
luying
2021-06-08 17:14:42 +08:00
parent 31c5200628
commit 0f97fa5cd1
5 changed files with 6 additions and 7 deletions

View File

@@ -185,7 +185,7 @@ export default class UploadController extends Controller {
const writeStream = fs.createWriteStream(target1);
await pump(stream, writeStream);
fs.copyFileSync(target1, target2);
// files.push(filename);
files.push(filename);
} else {
let target1 = path.join(this.config.baseDir, this.jsonFolder, filename);
let target2 = path.join(this.config.baseDir, this.distJsonFolder, filename);