diff --git a/src/router/index.js b/src/router/index.js index 87e7107..40f9510 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,6 +54,10 @@ const router = createRouter({ }); // Change document titles +router.beforeEach((to, from, next) => { + document.title = `${to.meta.title} | Activity Tracker`; + next(); +}); // Route guard for auth routes