feature: pinia添加持久化存储
This commit is contained in:
@@ -53,5 +53,8 @@ export const useCartStore = defineStore('cart', {
|
||||
this.checkStatus = checkoutStatus.FALSE
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// persist: {
|
||||
// enabled: true
|
||||
// }
|
||||
})
|
||||
|
||||
@@ -16,5 +16,8 @@ export const useProductStore = defineStore('product', {
|
||||
productItem.inventory--
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// persist: {
|
||||
// enabled: true
|
||||
// }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user