Set up page titles

This commit is contained in:
Bubka 2023-09-29 13:11:02 +02:00
parent eaf61dc01f
commit 304bc55601

View File

@ -86,6 +86,11 @@ router.beforeEach((to, from, next) => {
...context,
next: middlewarePipeline(context, middlewares, 1),
});
});
})
router.afterEach((to, from) => {
to.meta.title = trans('titles.' + to.name)
document.title = to.meta.title
})
export default router