admin big changes

This commit is contained in:
2026-06-13 17:38:35 +03:30
parent 213ef1a1b7
commit 0c404ee3e1
14 changed files with 188 additions and 276 deletions
+2 -5
View File
@@ -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)
}
+1 -2
View File
@@ -54,8 +54,7 @@ const Products: RouteRecordRaw = {
component: () => import('@/pages/menuPages/products/categories/index.vue'),
meta: {
icon: 'vuesax-linear:category',
title: 'دسته‌بندی‌ها',
hideMenu: true
title: 'دسته‌بندی‌ها'
}
}
]