admin user and ui panel

This commit is contained in:
s.esmaeili
2026-09-21 08:32:31 +03:30
parent 79226c9f13
commit ef1d4638cc
341 changed files with 2270 additions and 657 deletions
+3
View File
@@ -117,6 +117,9 @@ router.beforeEach(async (to) => {
if (token) {
const roles = await getPermission();
if (roles && to.meta && to.meta.role && !roles.includes(to.meta.role as string)) {
if (to.name === 'dashboard-ecommerce' || to.name === 'dashboard-analytics') {
return { name: 'my-data' };
}
return { name: 'page-not-authorized' };
}
return true;