diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 9ea9dda4..f3985109 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -228,7 +228,7 @@ onMounted(async () => { }); const setListTab = () => { - console.log(route.name); + // console.log(route.name); if (route.name == "manual") { listTab.value = tabListLogin; @@ -241,6 +241,8 @@ const setListTab = () => { } else if (route.name == "recruitmain") { listTab.value = tabRecruit; } + changeTab(listTab.value[0].tag); + window.scrollTo(0, 0); }; watch(route, () => { setListTab();