Skip to content

Instantly share code, notes, and snippets.

@LeezQ
Last active December 18, 2018 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeezQ/69a92b7ecc09eb63e1ab7089cae8eb6e to your computer and use it in GitHub Desktop.
Save LeezQ/69a92b7ecc09eb63e1ab7089cae8eb6e to your computer and use it in GitHub Desktop.
dva-model
import * as menuServices from '@/services/atgauth/menu';
export default {
namespace: 'model',
state: {
menuTree: [],
},
effects: {
*getUserInfo(_, { call, put }) {
},
},
reducers: {
update(state, { payload }) {
return {
...state,
};
},
},
subscriptions: {
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment