Browse Source

fix: 默认值数组类型为空时错误

old
wangqing 5 years ago
parent
commit
48ba6f469a
  1. 2
      src/components/parser/Parser.vue

2
src/components/parser/Parser.vue

@ -280,8 +280,10 @@ export default {
if (tagOptionKey && defaultValue) {
if (defaultValue instanceof Array) {
defaultValue.forEach(item => {
if(item){
let {label} = getObject(_.get(cur, tagOptionKey), 'value', item)
labelStr += label + ','
}
})
formData[cur.__vModel__] = labelStr
} else {

Loading…
Cancel
Save