From 712b06e089b27c2167db90a1446d953fcd8d18d3 Mon Sep 17 00:00:00 2001 From: huangjie Date: Thu, 2 Jul 2020 17:38:39 +0800 Subject: [PATCH] =?UTF-8?q?map=E6=8D=A2=E6=88=90forEach?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/parser/example/Index.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/parser/example/Index.vue b/src/components/parser/example/Index.vue index 79856a9e..b0dfadef 100644 --- a/src/components/parser/example/Index.vue +++ b/src/components/parser/example/Index.vue @@ -252,12 +252,11 @@ export default { }, methods: { fillFormData(form, data) { - form.fields.map(item => { + form.fields.forEach(item => { const val = data[item.__vModel__] if (val) { item.__config__.defaultValue = val } - return item }) }, change() {