fix : label

This commit is contained in:
zeinab.ashrafi
2025-03-12 11:10:35 +03:30
parent 9359af0852
commit 850f302365
5 changed files with 159 additions and 80 deletions
+3 -1
View File
@@ -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',