hzfvictory
Results
12
comments of
hzfvictory
大佬我用的dva-core 为啥store老是公用,我设成回调函数了,还是不行
就是上面的那种用法,跟直接的客户端的用法是一样的,我看打包输出的是全局的store,所以肯定是所有用户公用了,但是我看你源码中也是这么写的,在你里面没有发现这个问题。 ```javascript export default { namespace: 'menuTree', state: { routes: [] }, effects: { * reset(payload, {call, put, select, update}) { const {routes} = yield select(state => state.menuTree); routes.push(111111) yield...