mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 17:03:20 +03:30
fix : label
This commit is contained in:
+3
-1
@@ -59,7 +59,9 @@ router.beforeEach((to, from, next) => {
|
||||
const onlyWhenLoggedOut = to.matched.some(record => record.meta.onlyWhenLoggedOut);
|
||||
const loggedIn = !!TokenService.getToken();
|
||||
const roles = (to.meta && to.meta.roles) ? to.meta.roles : null;
|
||||
|
||||
if (to.meta.title) {
|
||||
document.title = to.meta.title;
|
||||
}
|
||||
if (!isPublic && !loggedIn) {
|
||||
return next({
|
||||
path:'/login',
|
||||
|
||||
Reference in New Issue
Block a user