mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-24 12:26:51 +00:00
fix handleClick
This commit is contained in:
parent
d6013d5fa2
commit
b0d6784462
1 changed files with 6 additions and 10 deletions
|
@ -17,10 +17,6 @@
|
|||
@click="handleClick(favorite)"
|
||||
>
|
||||
|
||||
<!-- <template v-slot:prepend>
|
||||
<v-icon class="icon-pin"></v-icon>
|
||||
</template> -->
|
||||
|
||||
<template v-slot:prepend>
|
||||
<v-icon class="icon-pin"></v-icon>
|
||||
</template>
|
||||
|
@ -41,6 +37,10 @@ export default {
|
|||
setup() {
|
||||
const favorite = ref([]);
|
||||
|
||||
const handleClick = (favoriteItem) => {
|
||||
console.log('Clicked:', favoriteItem);
|
||||
};
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
const currentUser = JSON.parse(sessionStorage.getItem('current_user'));
|
||||
|
@ -58,15 +58,11 @@ export default {
|
|||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
const handleClick = (favorite) => {
|
||||
console.log('Clicked:', favorite);
|
||||
};
|
||||
|
||||
});
|
||||
|
||||
return {
|
||||
favorite
|
||||
favorite,
|
||||
handleClick
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue