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 | 133 | inputComponents, selectComponents, layoutComponents, formConf |
| 134 | 134 | } from '@/components/generator/config' |
| 135 | 135 | import { |
| 136 | - exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, isObjectObject | |
| 136 | + exportDefault, beautifierConf, isNumberStr, titleCase, deepClone | |
| 137 | 137 | } from '@/utils/index' |
| 138 | 138 | import { |
| 139 | 139 | makeUpHtml, vueTemplate, vueScript, cssStyle |
| ... | ... | @@ -272,7 +272,7 @@ export default { |
| 272 | 272 | arr.reduce((pre, item, i) => { |
| 273 | 273 | if (arr.length === i + 1) { |
| 274 | 274 | pre[item] = data |
| 275 | - } else if (!isObjectObject(pre[item])) { | |
| 275 | + } else if (pre[item]===undefined) { | |
| 276 | 276 | pre[item] = {} |
| 277 | 277 | } |
| 278 | 278 | return pre[item] | ... | ... |