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
|
||||
})
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user