Commit 1097c63aa4da2617dfa64252c0fc795128c5c0c6
Committed by
Gitee
!256 fix:前端表单设计器中动态数据不能正常获取和更深层级的赋值错误的情况
Merge pull request !256 from CorrectRoadH/fix/formDynamicDataFecth
Showing
1 changed file
with
3 additions
and
3 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] |
| @@ -300,7 +300,7 @@ export default { | @@ -300,7 +300,7 @@ export default { | ||
| 300 | url | 300 | url |
| 301 | }).then(resp => { | 301 | }).then(resp => { |
| 302 | this.setLoading(component, false) | 302 | this.setLoading(component, false) |
| 303 | - this.setRespData(component, resp.data) | 303 | + this.setRespData(component, resp) |
| 304 | }) | 304 | }) |
| 305 | } | 305 | } |
| 306 | }, | 306 | }, |