admin big changes
This commit is contained in:
+2
-5
@@ -11,7 +11,7 @@ function applyAppModeMeta(route: RouteRecordRaw, appName: string | null) {
|
||||
const store = isStoreApp()
|
||||
|
||||
if (route.name === 'pricing' && route.meta) {
|
||||
route.meta.title = store ? 'تاریخچه قیمت' : 'قیمت گذاری'
|
||||
route.meta.title = 'تاریخچه قیمت'
|
||||
}
|
||||
|
||||
if (!route.children?.length) return
|
||||
@@ -27,11 +27,8 @@ function applyAppModeMeta(route: RouteRecordRaw, appName: string | null) {
|
||||
if (child.name === 'banners' && child.meta) {
|
||||
child.meta.hideMenu = appName !== 'garoosi'
|
||||
}
|
||||
if (child.name === 'productsMain_categories' && child.meta) {
|
||||
child.meta.hideMenu = !store
|
||||
}
|
||||
if (child.name === 'pricingMain' && child.meta) {
|
||||
child.meta.title = store ? 'تاریخچه قیمت' : 'قیمت گذاری'
|
||||
child.meta.title = 'تاریخچه قیمت'
|
||||
}
|
||||
applyAppModeMeta(child, appName)
|
||||
}
|
||||
|
||||
@@ -54,8 +54,7 @@ const Products: RouteRecordRaw = {
|
||||
component: () => import('@/pages/menuPages/products/categories/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:category',
|
||||
title: 'دستهبندیها',
|
||||
hideMenu: true
|
||||
title: 'دستهبندیها'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user