14 lines
No EOL
282 B
JavaScript
14 lines
No EOL
282 B
JavaScript
import {defineStore} from "pinia";
|
|
import {ref} from "vue";
|
|
|
|
export const useCartStore = defineStore('cart', () => {
|
|
const currentOrder = ref({});
|
|
const setCurrentOrders = (order) => {
|
|
currentOrder.value = order
|
|
};
|
|
|
|
return {
|
|
currentOrder,
|
|
setCurrentOrders
|
|
}
|
|
}) |