From 204d23c1975cdbf6377c8f4d7ab805acdcb41475 Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:32:35 +0300 Subject: [PATCH] Update VoteHomePage.vue --- src/front/src/views/VoteHomePage.vue | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue index 6dac5cf5a..220ac28d8 100644 --- a/src/front/src/views/VoteHomePage.vue +++ b/src/front/src/views/VoteHomePage.vue @@ -16,7 +16,7 @@ - + - - {{ voting.title }} - - Завершено: {{ formatDate(voting.endDate) }} - - - - Результаты - - - mdi-delete - - - + @@ -128,12 +115,12 @@ export default { components: { CurrentVote, VoteConstructor, VoteCardVue }, setup() { const tabs=[ - {value:"current", text:'Текущие голосования'}, + {value:"active", text:'Текущие голосования'}, {value:"completed", text:'Завершенные голосования'}, {value:"constructor", text:'Создать новое голосование'}, ] - const currentTab = ref("current"); + const currentTab = ref("active"); const votes = ref([]); const router = useRouter(); const route = useRoute(); @@ -206,6 +193,11 @@ export default { console.error("Ошибка при удалении голосования:", error); } }; + watch(currentTab, + async () => + // console.log(currentTab.value) + await updating(currentTab.value) + ) watch( () => route,