WIP MMCM
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {defineStore} from 'pinia'
|
||||
|
||||
export const useMMCMStore = defineStore('counter', {
|
||||
state: () => ({count: 0, name: 'Eduardo', street: '', zipCode: '', city: '', productList : []}),
|
||||
state: () => ({street: '', zipCode: '', city: '', productList: [], withPrescription: null, idProduct: null, dateDelivery:null}),
|
||||
getters: {
|
||||
fullAddress: (state) => state.street + ' ' + state.zipCode + '' + state.city
|
||||
fullAddress: (state) => state.street + ' ' + state.zipCode + '' + state.city,
|
||||
},
|
||||
actions: {
|
||||
setStreet(street) {
|
||||
@@ -15,8 +15,14 @@ export const useMMCMStore = defineStore('counter', {
|
||||
setCity(city) {
|
||||
this.city = city
|
||||
},
|
||||
setProductList(array){
|
||||
setProductList(array) {
|
||||
this.productList = array
|
||||
},
|
||||
setPrescription(bool) {
|
||||
this.withPrescription = bool
|
||||
},
|
||||
setIdProduct(id) {
|
||||
this.idProduct = id
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user