added banner into menu
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -109,8 +109,7 @@ const Setting: RouteRecordRaw = {
|
||||
component: () => import('@/pages/menuPages/banners/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:image',
|
||||
title: 'بنرها',
|
||||
hideMenu: true
|
||||
title: 'بنرها'
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user