11
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: chenxuan
|
* @Author: chenxuan
|
||||||
* @Date: 2022-07-31 21:43:44
|
* @Date: 2022-07-31 21:43:44
|
||||||
* @LastEditTime: 2022-08-02 00:18:10
|
* @LastEditTime: 2022-08-02 16:59:08
|
||||||
* @LastEditors: chenxuan
|
* @LastEditors: chenxuan
|
||||||
*/
|
*/
|
||||||
import Rreact,{Component} from 'react'
|
import Rreact,{Component} from 'react'
|
||||||
@@ -15,7 +15,6 @@ class Person extends Component{
|
|||||||
const age=this.nodeAge.value
|
const age=this.nodeAge.value
|
||||||
const personObj={id:nanoid(),name,age}
|
const personObj={id:nanoid(),name,age}
|
||||||
this.props.createPerson(personObj)
|
this.props.createPerson(personObj)
|
||||||
console.log(personObj)
|
|
||||||
this.nodeName=''
|
this.nodeName=''
|
||||||
this.nodeAge=''
|
this.nodeAge=''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user