mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 15:51:52 +08:00
解决没有isObjectObject这个函数的问题
This commit is contained in:
parent
b604cbedb9
commit
c691c440bd
@ -133,7 +133,7 @@ import {
|
|||||||
inputComponents, selectComponents, layoutComponents, formConf
|
inputComponents, selectComponents, layoutComponents, formConf
|
||||||
} from '@/components/generator/config'
|
} from '@/components/generator/config'
|
||||||
import {
|
import {
|
||||||
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone, isObjectObject
|
exportDefault, beautifierConf, isNumberStr, titleCase, deepClone
|
||||||
} from '@/utils/index'
|
} from '@/utils/index'
|
||||||
import {
|
import {
|
||||||
makeUpHtml, vueTemplate, vueScript, cssStyle
|
makeUpHtml, vueTemplate, vueScript, cssStyle
|
||||||
@ -272,7 +272,7 @@ export default {
|
|||||||
arr.reduce((pre, item, i) => {
|
arr.reduce((pre, item, i) => {
|
||||||
if (arr.length === i + 1) {
|
if (arr.length === i + 1) {
|
||||||
pre[item] = data
|
pre[item] = data
|
||||||
} else if (!isObjectObject(pre[item])) {
|
} else if (pre[item]===undefined) {
|
||||||
pre[item] = {}
|
pre[item] = {}
|
||||||
}
|
}
|
||||||
return pre[item]
|
return pre[item]
|
||||||
|
Loading…
Reference in New Issue
Block a user