({ url, method, body }, { call, put })
| 16 | }, |
| 17 | effects: { |
| 18 | *fetchData ({ url, method, body }, { call, put }) { |
| 19 | const res = yield call(queryDataSource, url, method, body); |
| 20 | if (res) { |
| 21 | message.success('请求发送成功'); |
| 22 | } |
| 23 | yield put({ |
| 24 | type: 'saveRes', |
| 25 | payload: res, |
| 26 | }); |
| 27 | }, |
| 28 | *getProxyCode ({ payload }, { call, put }) { |
| 29 | const { data } = yield call(initProxyCode) |
| 30 | return data |
nothing calls this directly
no outgoing calls
no test coverage detected