3 回答
拉风的咖菲猫
TA贡献1995条经验 获得超2个赞
杨__羊羊
TA贡献1943条经验 获得超7个赞
actions:
export const getMenu = () => { return async (dispatch) => { let msg = await fetch('data/nodes',{
method: 'POST', //body: JSON.stringify({"aa":"aa"}),
header: {'content-type':'application/json; charset=utf-8'}
}).then((res)=>res.json()); var state = { nodes: msg };
dispatch({ type: 'INIT',
state
});
};
}
添加回答
举报
0/150
提交
取消