MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / fetchData

Function fetchData

src/models/dataSource.js:18–27  ·  view source on GitHub ↗
({ url, method, body }, { call, put })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected