cancelOrder.js
538 Bytes
import urlAlias from '../url';
import request from '../request';
const {
cancelOrder
} = urlAlias;
const state = {
orderList: [],
};
const mutations = {
INIT: (state, data) => {
state.orderList = data;
},
};
const actions = {
cancel({ commit }, param) {
request({
url: cancelOrder,
data: param,
success: (res) => {
console.log(res.data);
// commit("INIT", res.data.data);
},
})
}
}
export default {
namespaced: true,
state,
mutations,
actions,
}