fix: 修复二开脚本无法拆分附件上传组件的bug

This commit is contained in:
gaoyunqi
2025-03-31 16:04:38 +08:00
parent 495cfbd164
commit 99c3300bad

View File

@ -28,7 +28,12 @@ if (fs.existsSync(filePath)) {
} }
}); });
console.log('total rows: ' + confArr.length); console.log('total rows: ' + confArr.length);
formProps = eval('(' + confArr.join('\n') + ')'); const funStr = `
const uploadApi = ''; // 修复文件上传引用的API
return ${confArr.join('\n')}
`;
const fun = new Function(funStr);
formProps = fun();
} else { } else {
process.exit(0); process.exit(0);
} }