add: reactive store

Add useLocalStorage from VueUse
This commit is contained in:
Fiona Lena Urban 2025-05-10 14:32:40 +02:00
parent 27f051cf14
commit 9498911e7a
4 changed files with 81 additions and 98 deletions

View file

@ -83,7 +83,6 @@ const { currentCardIndex, currentCard } = defineProps<Props>()
const emit = defineEmits(['update'])
const dialog = useTemplateRef<HTMLDialogElement>('dialog')
const cardLabel = computed(() => currentCardIndex > -1 ? 'Bearbeiten' : 'Hinzufügen')
const checkPrice = () => {
if (!currentCard) { return false }