feature: pinia添加持久化存储

This commit is contained in:
2022-04-28 12:32:20 +08:00
parent 6dece8bccc
commit f741bfcbaa
7 changed files with 56 additions and 39 deletions

View File

@@ -53,5 +53,8 @@ export const useCartStore = defineStore('cart', {
this.checkStatus = checkoutStatus.FALSE
}
}
}
},
// persist: {
// enabled: true
// }
})

View File

@@ -16,5 +16,8 @@ export const useProductStore = defineStore('product', {
productItem.inventory--
}
}
}
},
// persist: {
// enabled: true
// }
})