From 7cf9b1e89c9a1be7d8b271558351f637a2d4e416 Mon Sep 17 00:00:00 2001 From: manzhenhua Date: Thu, 31 Oct 2019 20:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E9=A5=B0=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/behavior.js | 1 - src/index.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/behavior.js b/src/behavior.js index 7886914..5a4058b 100644 --- a/src/behavior.js +++ b/src/behavior.js @@ -28,7 +28,6 @@ export const HandleClass = { name: '修改business,请求参数', fun: ({ behavior = {}, formData, componentData, value, handleType }, resertValue) => { // handleType 为init时不处理值的问题 - const newFormData = formData.slice(); const targets = (behavior.targets || '').split(','); targets.forEach(ls => { diff --git a/src/index.js b/src/index.js index e41c707..6bd9305 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ class HandleBehavior { return this; } getFormData = () => { + return this.formData } @@ -64,4 +65,4 @@ class HandleBehavior { this.formData = this.formData.filter(item => item.type !== 'hidden') } } -export default HandleBehavior +export default HandleBehavior \ No newline at end of file -- 2.21.0