React getFieldDecorator initialValue

< FormItem label= "title" {.formItemLayout} >

{getFieldDecorator("Title",{initialValue:this.state.baseData?this.state.baseData.title:""}, {
    rules: [{
        required: true,
        whitespace: true,
        message: "",
    }],
})(
    <Input type="text" />
)}

< / FormItem >

question: after the API request, after the page initializes and assigns values to the form, manually clear the values in input. Why does the rule judgment of rules not work?

Apr.01,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a5b4-2c220.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a5b4-2c220.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?