Skip to content

Commit 6505fdd

Browse files
committed
解决没有isObjectObject这个函数的问题
1 parent 0141468 commit 6505fdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/infra/build/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ import {
133133
inputComponents, selectComponents, layoutComponents, formConf
134134
} from '@/components/generator/config'
135135
import {
136-
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, isObjectObject
136+
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone
137137
} from '@/utils/index'
138138
import {
139139
makeUpHtml, vueTemplate, vueScript, cssStyle
@@ -272,7 +272,7 @@ export default {
272272
arr.reduce((pre, item, i) => {
273273
if (arr.length === i + 1) {
274274
pre[item] = data
275-
} else if (!isObjectObject(pre[item])) {
275+
} else if (pre[item]===undefined) {
276276
pre[item] = {}
277277
}
278278
return pre[item]

0 commit comments

Comments
 (0)