mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-21 12:50:53 +01:00
Fix page titles not being updated in time
This commit is contained in:
parent
fe4ebd586d
commit
969367e905
2
resources/js/routes.js
vendored
2
resources/js/routes.js
vendored
@ -72,7 +72,7 @@ let isFirstLoad = true;
|
|||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
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') {
|
if( to.name === 'accounts') {
|
||||||
to.params.isFirstLoad = isFirstLoad ? true : false
|
to.params.isFirstLoad = isFirstLoad ? true : false
|
||||||
|
Loading…
Reference in New Issue
Block a user