doc: add document title change

This commit is contained in:
Leon Xu
2022-01-01 12:46:17 -08:00
parent 527888d8ea
commit 57034df39c
+4
View File
@@ -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