提交 689af3ed authored 作者: wtj's avatar wtj

提交缺少的model

上级 fa77557e
......@@ -117,6 +117,19 @@ const myCollect = {
callback(response)
}
},
*getCodeDetail({ payload, callback }, { call, put }) {
const response = yield call(uaaRequest, "/UnifiedServicePatternApi/getDetail", {
...payload,
});
yield put({
type: 'initAffair',
payload: response,
});
if (response == null) { yield put({ type: 'nom' }); return }
if (callback) {
callback(response)
}
}
},
reducers: {
initHome(state, action) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论