Commit c691c440bda5f76c3acea187bea57e2ca26ef410
1 parent
b604cbed
解决没有isObjectObject这个函数的问题
Showing
1 changed file
with
2 additions
and
2 deletions
yudao-ui-admin/src/views/infra/build/index.vue
| @@ -133,7 +133,7 @@ import { | @@ -133,7 +133,7 @@ import { | ||
| 133 | inputComponents, selectComponents, layoutComponents, formConf | 133 | inputComponents, selectComponents, layoutComponents, formConf |
| 134 | } from '@/components/generator/config' | 134 | } from '@/components/generator/config' |
| 135 | import { | 135 | import { |
| 136 | - exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, isObjectObject | 136 | + exportDefault, beautifierConf, isNumberStr, titleCase, deepClone |
| 137 | } from '@/utils/index' | 137 | } from '@/utils/index' |
| 138 | import { | 138 | import { |
| 139 | makeUpHtml, vueTemplate, vueScript, cssStyle | 139 | makeUpHtml, vueTemplate, vueScript, cssStyle |
| @@ -272,7 +272,7 @@ export default { | @@ -272,7 +272,7 @@ export default { | ||
| 272 | arr.reduce((pre, item, i) => { | 272 | arr.reduce((pre, item, i) => { |
| 273 | if (arr.length === i + 1) { | 273 | if (arr.length === i + 1) { |
| 274 | pre[item] = data | 274 | pre[item] = data |
| 275 | - } else if (!isObjectObject(pre[item])) { | 275 | + } else if (pre[item]===undefined) { |
| 276 | pre[item] = {} | 276 | pre[item] = {} |
| 277 | } | 277 | } |
| 278 | return pre[item] | 278 | return pre[item] |