diff --git a/NUXT/components/topNavigation.vue b/NUXT/components/topNavigation.vue index 8464a85..7367cbd 100644 --- a/NUXT/components/topNavigation.vue +++ b/NUXT/components/topNavigation.vue @@ -29,6 +29,7 @@ $vuetify.theme.dark ? 'background lighten-1' : 'background darken-1' " @input="$emit('text-changed', text)" + @ @keyup.enter="$emit('search-btn', text)" /> @@ -80,7 +81,7 @@ export default { default: "Home", }, }, - events: ["searchBtn", "textChanged", "closeSearch"], + events: ["searchBtn", "textChanged", "closeSearch", "scrollToTop"], data: () => ({ text: "", }), diff --git a/NUXT/layouts/default.vue b/NUXT/layouts/default.vue index 90ea2d0..bd94d6f 100644 --- a/NUXT/layouts/default.vue +++ b/NUXT/layouts/default.vue @@ -4,9 +4,9 @@ :search="search" :page="page" style="z-index: 696969" - @close-search="search = !search" @search-btn="searchBtn" @text-changed="textChanged" + @close-search="search = !search" @scroll-to-top="$refs.pgscroll.scrollTop = 0" /> @@ -62,21 +62,17 @@ >