doc: add document title change
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user