Blame view
src/store/modules/cancelOrder.js
404 Bytes
9a8f39ae3 订单 |
1 2 3 4 5 6 |
import urlAlias from '../url'; import request from '../request'; const { cancelOrder } = urlAlias; |
9a8f39ae3 订单 |
7 8 |
const actions = { cancel({ commit }, param) { |
eed6c3ca9 订单列表添加支付和取消功能,修改订... |
9 10 11 12 13 14 15 16 17 |
return new Promise((resolve)=> request({ url: cancelOrder, data: param, success: (res) => { // console.log(res.data); resolve(res.data) }, }) ) |
9a8f39ae3 订单 |
18 19 20 21 22 |
} } export default { namespaced: true, |
9a8f39ae3 订单 |
23 24 |
actions, } |