diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index b878b51..2009deb 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -96,7 +96,7 @@ haveLocation: "" } }, - async created() { + async mounted() { if (this.loggedIn) { try { let responses = await Promise.all([ diff --git a/frontend/src/views/admin/Users.vue b/frontend/src/views/admin/Users.vue index 8fd8665..50871b9 100644 --- a/frontend/src/views/admin/Users.vue +++ b/frontend/src/views/admin/Users.vue @@ -60,13 +60,12 @@ this.prevPage = usersResponse.data._links?.prev?.href } }, - async created() { + async mounted() { try { await this.loadPage(BASE_URI + "/users") } catch (e) { if (e.response.status === 403) await this.$router.push("/") // Solve later with location guard } - } }; diff --git a/frontend/src/views/timerecords/TimeRecords.vue b/frontend/src/views/timerecords/TimeRecords.vue index 3bad0ee..8c143b6 100644 --- a/frontend/src/views/timerecords/TimeRecords.vue +++ b/frontend/src/views/timerecords/TimeRecords.vue @@ -1,21 +1,19 @@