Fix page titles not being updated in time

This commit is contained in:
Bubka 2023-08-21 14:47:41 +02:00
parent fe4ebd586d
commit 969367e905

View File

@ -72,7 +72,7 @@ let isFirstLoad = true;
router.beforeEach((to, from, next) => {
document.title = router.app.$options.i18n.t('titles.' + to.name)
document.title = to.meta.title = router.app.$options.i18n.t('titles.' + to.name)
if( to.name === 'accounts') {
to.params.isFirstLoad = isFirstLoad ? true : false