From c795ef4d03acffe4500c9aff6b1a8268f720a5d2 Mon Sep 17 00:00:00 2001 From: lhbxs <596850703@qq.com> Date: Mon, 13 Nov 2023 16:15:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=AD=E4=BB=A3=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dumirc.ts | 2 +- packages/form-render/src/models/expression.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dumirc.ts b/.dumirc.ts index 0a36d57ca..f8064901b 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -73,7 +73,7 @@ export default defineConfig({ 'form-render': path.resolve(__dirname, 'packages/form-render/src'), 'table-render': path.resolve(__dirname, 'packages/table-render/src'), '@xrenders/schema-builder': path.resolve(__dirname, 'tools/schema-builder/src'), - 'form-render-mobile': path.resolve(__dirname, 'packages/form-render-mobile/src'), + // 'form-render-mobile': path.resolve(__dirname, 'packages/form-render-mobile/src'), '@xrenders/data-render': path.resolve(__dirname, 'packages/data-render/src'), }, codeSplitting: { jsStrategy: 'granularChunks' }, diff --git a/packages/form-render/src/models/expression.ts b/packages/form-render/src/models/expression.ts index 846c3f9e5..d2762e433 100644 --- a/packages/form-render/src/models/expression.ts +++ b/packages/form-render/src/models/expression.ts @@ -63,7 +63,7 @@ export const parseExpression = (func: any, formData = {}, parentPath: string | [ const result = Function(funcStr)(); return result; } catch (error) { - //console.log(error, funcStr, parentPath); + console.log(error, funcStr, parentPath); return null; // 如果计算有错误,return null 最合适 } }