named pipe tcp proxy怎么跟crt聯動
4 回答

ABOUTYOU
TA貢獻1812條經驗 獲得超5個贊
可能是你的action沒有connect到組件上,沒有把這個方法傳過來。 參考我寫的一個方案 @connect( state =; state, dispatch =; bindActionCreators(action, dispatch) ) 2.根據redux文檔的方案 // 哪些 action 創建函數是我們想要通過 props 獲取

拉風的咖菲貓
TA貢獻1995條經驗 獲得超2個贊
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
});
};
}
- 4 回答
- 0 關注
- 718 瀏覽
添加回答
舉報
0/150
提交
取消