umijs 出错 TypeError: rawData.some is not a function
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                umijs 出错 TypeError: rawData.some is not a function
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                ?修改model中的代碼
effects: {*query({ payload }, { call, put }) {},*getRemote(action,{put,call }){const data=yield call(getRemoteList);yield put({type:'getList',payload:data})}},改成
effects: {*query({ payload }, { call, put }) {},*getRemote(action,{put,call }){const data=yield call(getRemoteList);yield put({type:'getList',payload:{data}})}},page中的代碼
return (<div className="list-table"><Table columns={columns} dataSource={users} /></div>);改成
return (<div className="list-table"><Table columns={columns} dataSource={users.data} /></div>);這樣就好了
總結
以上是生活随笔為你收集整理的umijs 出错 TypeError: rawData.some is not a function的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: win11在桌面添加便签的快捷方式
- 下一篇: 在Win2016上安装SVNServer
