Skip to content

Commit

Permalink
map换成forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjie committed Jul 2, 2020
1 parent bbd1008 commit 712b06e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/parser/example/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 712b06e

Please sign in to comment.