rt-sim-training-client/src/store/modules/order.js

29 lines
569 B
JavaScript
Raw Normal View History

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