1405/02/07-add authentication card for garoosi
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user