fix: 修复二开脚本无法拆分附件上传组件的bug
This commit is contained in:
@ -28,7 +28,12 @@ if (fs.existsSync(filePath)) {
|
||||
}
|
||||
});
|
||||
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 {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user