feat: add localStorage
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user