added banner into menu

This commit is contained in:
2026-06-21 14:25:21 +03:30
parent 01d0b82b61
commit bbca1c8991
2 changed files with 1 additions and 6 deletions
-4
View File
@@ -24,9 +24,6 @@ function applyAppModeMeta(route: RouteRecordRaw, appName: string | null) {
if (child.name === 'discounts' && child.meta) {
child.meta.hideMenu = store || appName !== 'goldsun'
}
if (child.name === 'banners' && child.meta) {
child.meta.hideMenu = appName !== 'garoosi'
}
if (child.name === 'pricingMain' && child.meta) {
child.meta.title = 'تاریخچه قیمت'
}
@@ -39,7 +36,6 @@ function filterRoutesByApp(routes: RouteRecordRaw, appName: string | null) {
routes.children = routes.children.filter((item) => {
if (item.name === 'discounts' && (isStoreApp() || appName !== 'goldsun')) return false
if (item.name === 'banners' && appName !== 'garoosi') return false
if (item.name === 'authentication' && appName !== 'garoosi') return false
if (item.name === 'giftCardMain' && !isStoreApp() && appName !== 'garoosi') return false
+1 -2
View File
@@ -109,8 +109,7 @@ const Setting: RouteRecordRaw = {
component: () => import('@/pages/menuPages/banners/index.vue'),
meta: {
icon: 'vuesax-linear:image',
title: 'بنرها',
hideMenu: true
title: 'بنرها'
}
},
]