feat: add localStorage

This commit is contained in:
Константин Уколов
2024-09-02 01:18:24 +03:00
parent 0130b9aa0d
commit 5868f6af53
7 changed files with 57 additions and 26 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ const props = defineProps<{
productId: string
}>()
const { amount, currentUnitPrice, prevUnitPrice, prevUnitPriceForAll } = useProductPrice(props.variants, props.productId)
const { amount, currentUnitPrice, prevUnitPrice } = useProductPrice(props.variants, props.productId)
</script>
<template>
@@ -18,7 +18,7 @@ const { amount, currentUnitPrice, prevUnitPrice, prevUnitPriceForAll } = useProd
{{ currentUnitPrice }}
</div>
<div v-if="prevUnitPrice" class="line-through text-slate-400">
{{ prevUnitPriceForAll }}
{{ prevUnitPrice }}
</div>
</div>
<div class="flex-1">