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

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

湖上湖
TA貢獻2003條經驗 獲得超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 關注
- 697 瀏覽
添加回答
舉報
0/150
提交
取消