1405/02/14-add giftCards
This commit is contained in:
+3
-2
@@ -44,14 +44,15 @@ export function setupRoutes(permissionsKeys: string[], router?: Router) {
|
||||
return
|
||||
}
|
||||
|
||||
function filterRoutesByApp(routes: RouteRecordRaw) {
|
||||
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
|
||||
if (item.name === 'giftCard' && appName !== 'garoosi') return false
|
||||
if (item.name === 'giftCardMain' && appName !== 'garoosi') return false
|
||||
|
||||
|
||||
return true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user