From 48ba6f469a089f46f07bb2570c536f721c9df01c Mon Sep 17 00:00:00 2001 From: wangqing <250543222@qq.com> Date: Tue, 9 Mar 2021 22:08:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E5=80=BC=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E7=B1=BB=E5=9E=8B=E4=B8=BA=E7=A9=BA=E6=97=B6=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/parser/Parser.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/parser/Parser.vue b/src/components/parser/Parser.vue index 75feb51..9069627 100644 --- a/src/components/parser/Parser.vue +++ b/src/components/parser/Parser.vue @@ -280,8 +280,10 @@ export default { if (tagOptionKey && defaultValue) { if (defaultValue instanceof Array) { defaultValue.forEach(item => { - let {label} = getObject(_.get(cur, tagOptionKey), 'value', item) - labelStr += label + ',' + if(item){ + let {label} = getObject(_.get(cur, tagOptionKey), 'value', item) + labelStr += label + ',' + } }) formData[cur.__vModel__] = labelStr } else {