代客下单修改,问题修复
This commit is contained in:
15
stores/cart.js
Normal file
15
stores/cart.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// stores/counter.js
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useCounterStore = defineStore('cart', {
|
||||
state: () => {
|
||||
return {
|
||||
selCoupon: [],
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
setSelCoupon(coupon) {
|
||||
this.selCoupon = coupon
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user