redux 怎么在组件中获取dispatch

2025-05-18 01:30:32
推荐回答(1个)
回答(1):

:创建一个 action,并且给一个标识,比如 isAPI = true 在 router 的 onEnter 中 dispatch 这个 act