1405/02/07-add authentication card for garoosi

This commit is contained in:
2026-04-27 18:18:05 +03:30
parent e96ef77e8f
commit 688c356e7d
7 changed files with 327 additions and 2 deletions
+3
View File
@@ -47,8 +47,11 @@ export function setupRoutes(permissionsKeys: string[], router?: Router) {
function filterRoutesByApp(routes: RouteRecordRaw) {
if (!routes.children) return
routes.children = routes.children.filter((item) => {
if (item.name === 'discounts' && appName !== 'goldsun') return false
if (item.name === 'banners' && appName !== 'garoosi') return false
if (item.name === 'authentication' && appName !== 'garoosi') return false
return true
})
routes.children.forEach((child) => filterRoutesByApp(child))