From 369f0cf041820b9143bb7b47bb709261fdf8d778 Mon Sep 17 00:00:00 2001 From: Vombat Date: Wed, 25 Dec 2024 00:15:05 +0300 Subject: [PATCH] =?UTF-8?q?3=D0=B5=20=D0=B7=D0=B0=D0=BD=D1=8F=D1=82=D0=B8?= =?UTF-8?q?=D0=B5=20-=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=205=D0=B9=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-basics-2/50-selected-meetup/SelectedMeetupApp.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/02-basics-2/50-selected-meetup/SelectedMeetupApp.js b/02-basics-2/50-selected-meetup/SelectedMeetupApp.js index 5dc62cf..091a998 100644 --- a/02-basics-2/50-selected-meetup/SelectedMeetupApp.js +++ b/02-basics-2/50-selected-meetup/SelectedMeetupApp.js @@ -7,22 +7,19 @@ export default defineComponent({ setup() { const meetupId = ref(1); const currentMeetup = ref(null); - async function getMeetupInfo(id) { - return await getMeetup(id) - } onMounted(async () => { - currentMeetup.value = await getMeetupInfo(meetupId.value); + currentMeetup.value = await getMeetup(meetupId.value); }) watch(meetupId, async () => { - currentMeetup.value = await getMeetupInfo(meetupId.value); + currentMeetup.value = await getMeetup(meetupId.value); }) return { - getMeetupInfo, + getMeetup, meetupId, currentMeetup }