From f876dbf613cad29eb7883f5cf06a59d9e6c7d2dd Mon Sep 17 00:00:00 2001 From: AyanChoudhary Date: Mon, 13 Jan 2020 04:27:31 +0530 Subject: [PATCH] fix:scroll error on page change --- frontend/src/views/About.vue | 1 + frontend/src/views/Event.vue | 1 + frontend/src/views/Home.vue | 1 + 3 files changed, 3 insertions(+) diff --git a/frontend/src/views/About.vue b/frontend/src/views/About.vue index 2665e7a..fcc796f 100644 --- a/frontend/src/views/About.vue +++ b/frontend/src/views/About.vue @@ -256,6 +256,7 @@ export default { } }, mounted() { + window.scrollTo(0, 0); axios .get(`${CONFIG.baseURL}/api/timeline/?format=json`) .then(response => { diff --git a/frontend/src/views/Event.vue b/frontend/src/views/Event.vue index 8a230cd..cf85630 100644 --- a/frontend/src/views/Event.vue +++ b/frontend/src/views/Event.vue @@ -31,6 +31,7 @@