orderRead.js
507 Bytes
import urlAlias from '../url';
import request from '../request';
const {
orderRead
} = urlAlias;
const state = {
orderInfo: {},
};
const mutations = {
INIT: (state, orderInfo) => {
state.orderInfo = orderInfo;
},
};
const actions = {
getOrderInfo({ commit }, param) {
request({
url: orderRead,
data: param,
success: (res) => {
commit("INIT", res.data.data);
},
})
},
};
export default {
namespaced: true,
state,
mutations,
actions,
};