From c691c440bda5f76c3acea187bea57e2ca26ef410 Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Fri, 19 Aug 2022 15:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B2=A1=E6=9C=89isObjectObj?= =?UTF-8?q?ect=E8=BF=99=E4=B8=AA=E5=87=BD=E6=95=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/views/infra/build/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin/src/views/infra/build/index.vue b/yudao-ui-admin/src/views/infra/build/index.vue index 32a7e903d..977192efa 100644 --- a/yudao-ui-admin/src/views/infra/build/index.vue +++ b/yudao-ui-admin/src/views/infra/build/index.vue @@ -133,7 +133,7 @@ import { inputComponents, selectComponents, layoutComponents, formConf } from '@/components/generator/config' import { - exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, isObjectObject + exportDefault, beautifierConf, isNumberStr, titleCase, deepClone } from '@/utils/index' import { makeUpHtml, vueTemplate, vueScript, cssStyle @@ -272,7 +272,7 @@ export default { arr.reduce((pre, item, i) => { if (arr.length === i + 1) { pre[item] = data - } else if (!isObjectObject(pre[item])) { + } else if (pre[item]===undefined) { pre[item] = {} } return pre[item]