detailStandard_k.js 832 Bytes
import urlAlias from '../url';
import request from '../request';

const {
    detailStandardList
} = urlAlias

const state = {
    list:[],
};

const mutations = {
    INIT: (state, detailStandardList) => {
      state.detailStandardList = detailStandardList;
    },
};

const actions = {
    getList({ commit }, param){
        request({
            detailStandardList,
            success: (res) => {
		  
                commit('INIT', res.data.data)
                console,log('success')
              },
              fail: (res) => {
                console.log("detail status === > ", res);
              },
              complete: (res) => {
                console.log("detail compete status === > ", res);
            },
        })
    }
} 

export default {
    namespaced: true,
    state,
    mutations,
    actions,
}