1405/02/14-add giftCards

This commit is contained in:
2026-05-04 18:09:50 +03:30
parent e4b7e60cd1
commit 4097b125c9
3 changed files with 5 additions and 6 deletions
+3 -2
View File
@@ -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
})