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]