使用index.js导出包含子模块的模块的最佳方法是什么。很长一段时间以来,我一直遵循在我的项目中命名和保存web组件的模式(Vue或React)。但是,我希望有一种更实用的方法来使用单一索引导出模块,以避免出现以下情况:import PostDetail from 'src/views/posts/PostDetail'
我的猜测是中间件是可重用的,所以如果需要进行多个ajax调用,只要传入不同的api路径作为参数,一个通用ajax调用中间件就足够了。但可以这么说.
中间商什么时候被执行?can be made here and the returned json data can be put inside the action object and pass it onto the reducers-> reducers get executed。