📝 Fix getting started code error

close #17997
This commit is contained in:
afc163 2019-07-31 17:12:14 +08:00
parent 34ad5152ec
commit 945adc9985

View File

@ -42,7 +42,7 @@ class App extends React.Component {
}; };
handleChange = date => { handleChange = date => {
message.info(`您选择的日期是: ${date.format('YYYY-MM-DD')}`); message.info(`您选择的日期是: ${date ? date.format('YYYY-MM-DD') : '未选择'}`);
this.setState({ date }); this.setState({ date });
}; };
render() { render() {