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 | 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] |
| ... | ... | @@ -300,7 +300,7 @@ export default { |
| 300 | 300 | url |
| 301 | 301 | }).then(resp => { |
| 302 | 302 | this.setLoading(component, false) |
| 303 | - this.setRespData(component, resp.data) | |
| 303 | + this.setRespData(component, resp) | |
| 304 | 304 | }) |
| 305 | 305 | } |
| 306 | 306 | }, | ... | ... |