mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 13:23:49 +00:00
dva
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
export default {
|
||||
|
||||
namespace: 'example',
|
||||
|
||||
state: {},
|
||||
|
||||
subscriptions: {
|
||||
setup({ dispatch, history }) {
|
||||
},
|
||||
},
|
||||
|
||||
effects: {
|
||||
*fetchRemote({ payload }, { call, put }) {
|
||||
},
|
||||
},
|
||||
|
||||
reducers: {
|
||||
fetch(state, action) {
|
||||
return { ...state, ...action.payload };
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user