From 99c3300bad3dd8f9b601ef69223293d478b54a3f Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Mon, 31 Mar 2025 16:04:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=8C=E5=BC=80?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=97=A0=E6=B3=95=E6=8B=86=E5=88=86=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev_tools/template_extend.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev_tools/template_extend.js b/dev_tools/template_extend.js index 4abf138..5c2be01 100644 --- a/dev_tools/template_extend.js +++ b/dev_tools/template_extend.js @@ -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); }