diff --git a/src/App.vue b/src/App.vue
index ecbc5cc..381bad5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,5 @@
@@ -71,7 +79,11 @@ import { onMounted, reactive, ref, watch } from 'vue'
-
+
Пусто
diff --git a/src/components/Card.vue b/src/components/Card.vue
index 2db31c7..1e37ffe 100644
--- a/src/components/Card.vue
+++ b/src/components/Card.vue
@@ -3,6 +3,7 @@
defineProps({
imageUrl: String,
+ id: Number,
title: String,
price: Number,
isAdded: Boolean,
diff --git a/src/components/CardList.vue b/src/components/CardList.vue
index 1dc075f..46e4748 100644
--- a/src/components/CardList.vue
+++ b/src/components/CardList.vue
@@ -5,13 +5,13 @@
alert('Добавлено в корзину')
}
- const onClickFavorite = () => {
- alert('Добавлено в Избранное')
- }
-
defineProps({
items: Array
})
+
+ defineEmits([
+ 'addToFavorite',
+ ])
@@ -19,11 +19,14 @@