提交 7fc3df49 authored 作者: wtj's avatar wtj

提交缺少的model

上级 e65dda2a
...@@ -33,7 +33,15 @@ export default { ...@@ -33,7 +33,15 @@ export default {
}); });
if (callback) callback({suc:true}); if (callback) callback({suc:true});
}, },
*changeType({ payload, callback }, { call, put }) {
const response = yield call(apiRequest, api+"/changeType",payload);
if (response==null){yield put({type: 'nom'});return }
yield put({
type: 'nom',
payload: response,
});
if (callback) callback({suc:true});
},
*fetch({ payload, callback }, { call, put }) { *fetch({ payload, callback }, { call, put }) {
const response = yield call(apiRequest, api+"/getPage",payload); const response = yield call(apiRequest, api+"/getPage",payload);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论