新增页面
This commit is contained in:
20
src/store/modules/shoppingcart/index.ts
Normal file
20
src/store/modules/shoppingcart/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
const useShoppingCartStore = defineStore('shoppingCart', {
|
||||
state: () => ({
|
||||
list: [],
|
||||
total: 0,
|
||||
count: 0
|
||||
}),
|
||||
getters: {
|
||||
getList() {
|
||||
return this.list;
|
||||
},
|
||||
getTotal() {
|
||||
return this.total;
|
||||
},
|
||||
getCount() {
|
||||
return this.count;
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user