:1、便于维护管理,一旦服务端对请求参数有改变或者返回的数据发生变化那么可以在action中直接更改,不用到项目组件中去修改。2、多个组件需要根据不同的需求dispatch数据到store中,可以在异步action中根据不同的参数选择不同的获取方式,对请求后端数据的方法进行了复用。3、将异步获取数据逻辑从组件业务中抽离出来,方便管理。
1便于维护管理一旦服务端对请求参数有改变或者返回的数据发生变…
相关推荐
- Cerastes of North Africa and the Middle East
- ThiswastheclosestIvebeentofaci…
- There was no impulse to change.
- Ah! Suddenly I want to change my favorite name! Is there any cute little help coming out?
- 如果点击其中一个对应状态和文字发生变化另外两个变灰且不能点击
- Luck draw! The Trend Map of Change in Mandarin Language for 4000 Years.
- Beijing First LaFerrari Aperta
乐生活