update 种子深度合并

This commit is contained in:
2021-06-22 18:02:37 +08:00
parent 79c14e5248
commit f2f71e6695
3 changed files with 6 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import { Anchor, Card, Col, Divider, Row, Spin } from 'antd'
import { AntIcon, ComponentDynamic, Container } from 'components'
import { isEqual } from 'lodash'
import { isEqual, merge } from 'lodash'
const parts = [
{
@@ -52,10 +52,7 @@ export default class index extends Component {
async getData() {
for (const child of this.children) {
const data = await child.getData()
this.formData = {
...this.formData,
...data,
}
merge(this.formData, data)
}
return this.formData
}