diff --git a/src/behavior.js b/src/behavior.js index 788691425d3d1af4cfa8fa809e5954039284a177..5a4058b109db74ec1c100ffc3ac1db4da07d39ab 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 e41c70784f65d450f12e0b28d0b8c60d3ebb9646..6bd9305bcfa03409146091563dc4a7a6af6e15c2 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