rt-sim-training-client/src/store/modules/order.js
2020-10-27 16:51:57 +08:00

29 lines
569 B
JavaScript

/**
* 实训状态数据
*/
const order = {
namespaced: true,
state: {
orderList: [] // 选中的商品列表,
},
getters: {
// orderList: (state)=>{
// return state.orderList;
// }
},
mutations: {
setOrderList: (state, orderList) => {
state.orderList = orderList;
}
},
actions: {
/**
* 设置选中的商品列表
*/
setOrderList: ({ commit }, orderList) => {
commit('setOrderList', orderList);
}
}
};
export default order;