antd上使用form 報錯TypeError: Cannot read property 'getFieldDecorator' of undefined

antd上使用form 報錯TypeError: Cannot read property ‘getFieldDecorator’ of undefined

在最後導出的時候請使用 
export default Form.create()(Login);

後面那個login是你當前的組件

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章