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
})
+2 -1
View File
@@ -1,4 +1,5 @@
import type { RouteRecordRaw } from 'vue-router'
import {getConfigApp} from "@/utils/config";
const Orders: RouteRecordRaw = {
name: 'giftCard',
@@ -10,7 +11,7 @@ const Orders: RouteRecordRaw = {
permissionsKey: 'giftCard',
title: 'کارت هدیه',
disabled: false,
hideMenu: false,
hideMenu: getConfigApp('name')!='garoosi',
hideChildren: true,
order: 7
},