diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue index 6b54673eb..000793868 100644 --- a/src/front/src/views/VoteHomePage.vue +++ b/src/front/src/views/VoteHomePage.vue @@ -37,7 +37,7 @@ - + @@ -91,6 +91,7 @@ export default { const route = useRoute(); const res = ref(null); const result = ref(null); + const constructor = ref(null) const updating = async (param) => { const data = await getVotes(param); @@ -165,7 +166,15 @@ export default { } }; - watch(currentTab, async () => await updating(currentTab.value)) + watch(currentTab, async () => { + if (currentTab.value !== 'constructor') { + await updating(currentTab.value) + console.log(constructor.value, '!!!'); + if (constructor.value !== null) { + constructor.value.resetForm() + } + } + }) watch( () => route, @@ -207,7 +216,8 @@ export default { updating, res, tabs, - result + result, + constructor }; }, };