doc: add document title change
This commit is contained in:
1 parent
527888d8ea
commit
57034df39c
1 file changed
+4
@@ -54,6 +54,10 @@ const router = createRouter({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Change document titles
|
// Change document titles
|
||||||
|
router.beforeEach((to, from, next) => {
|
||||||
|
document.title = `${to.meta.title} | Activity Tracker`;
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
|
||||||
// Route guard for auth routes
|
// Route guard for auth routes
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user