This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
|
export default {
|
|
quantity(state) {
|
|
return state.qty;
|
|
},
|
|
items(state) {
|
|
return state.items;
|
|
},
|
|
total(state) {
|
|
var total = 0;
|
|
state.items.forEach(item => {
|
|
total = total + item.price;
|
|
});
|
|
return total.toFixed(2);
|
|
}
|
|
};
|