This commit is contained in:
2026-06-13 12:42:10 +03:30
parent 164dbbfe53
commit 7050d041c4
7 changed files with 348 additions and 233 deletions
+7
View File
@@ -10,6 +10,10 @@ import { cloneDeep } from 'lodash'
function applyAppModeMeta(route: RouteRecordRaw, appName: string | null) {
const store = isStoreApp()
if (route.name === 'pricing' && route.meta) {
route.meta.title = store ? 'تاریخچه قیمت' : 'قیمت گذاری'
}
if (!route.children?.length) return
for (const child of route.children) {
@@ -26,6 +30,9 @@ function applyAppModeMeta(route: RouteRecordRaw, appName: string | null) {
if (child.name === 'productsMain_categories' && child.meta) {
child.meta.hideMenu = !store
}
if (child.name === 'pricingMain' && child.meta) {
child.meta.title = store ? 'تاریخچه قیمت' : 'قیمت گذاری'
}
applyAppModeMeta(child, appName)
}
}