umijs 出错 TypeError: rawData.some is not a function

umijs 出错 TypeError: rawData.some is not a function_第1张图片

 修改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 (
        
);

改成

 return (
        
);

这样就好了

你可能感兴趣的:(前端,javascript,开发语言,ecmascript)