29 lines
560 B
JavaScript
29 lines
560 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;
|