wxdata.js 580 Bytes
import { wxCorpAppSetUpInfo } from '../services/devutil'

export default {

   namespace : 'wxdata',

   state : {
        applist:[]
   },


   effects:{

        *fetch({payload},{call,put}){
            const response = yield call(wxCorpAppSetUpInfo,payload);
            yield put({
                type:'loadwxAppSetUp',
                payload:response,
            });

        },

   },

   
   reducers:{
        loadwxAppSetUp(state,action){
            return {
                ...state,
                applist:action.payload.list,
            }
        },
   }





}