This commit is contained in:
2022-08-03 09:20:35 +08:00
parent 245112ad7c
commit 2c25a02278
@@ -1,7 +1,7 @@
/*
* @Author: chenxuan
* @Date: 2022-07-31 21:43:44
* @LastEditTime: 2022-08-02 00:18:10
* @LastEditTime: 2022-08-02 16:59:08
* @LastEditors: chenxuan
*/
import Rreact,{Component} from 'react'
@@ -15,7 +15,6 @@ class Person extends Component{
const age=this.nodeAge.value
const personObj={id:nanoid(),name,age}
this.props.createPerson(personObj)
console.log(personObj)
this.nodeName=''
this.nodeAge=''
}