update 搬迁树节点页面
This commit is contained in:
@@ -51,7 +51,7 @@ export default class ModalForm extends Component {
|
||||
* 打开弹窗
|
||||
* @param {*} data
|
||||
*/
|
||||
open(data) {
|
||||
open(data = {}) {
|
||||
this.data = data
|
||||
this.setState({ visible: true })
|
||||
}
|
||||
@@ -86,7 +86,10 @@ export default class ModalForm extends Component {
|
||||
*/
|
||||
async onClose() {
|
||||
const body = this.childNode.current
|
||||
if (!body) return
|
||||
if (!body) {
|
||||
this.close()
|
||||
return
|
||||
}
|
||||
|
||||
if (this.compareOnClose) {
|
||||
const formData = body.form.current.getFieldsValue()
|
||||
|
||||
Reference in New Issue
Block a user