store 4
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user