!256 fix:前端表单设计器中动态数据不能正常获取和更深层级的赋值错误的情况
Merge pull request !256 from CorrectRoadH/fix/formDynamicDataFecth
This commit is contained in:
commit
1097c63aa4
@ -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]
|
||||||
@ -300,7 +300,7 @@ export default {
|
|||||||
url
|
url
|
||||||
}).then(resp => {
|
}).then(resp => {
|
||||||
this.setLoading(component, false)
|
this.setLoading(component, false)
|
||||||
this.setRespData(component, resp.data)
|
this.setRespData(component, resp)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user