This commit is contained in:
2026-06-13 12:23:07 +03:30
parent a14f1587c6
commit 164dbbfe53
14 changed files with 376 additions and 127 deletions
+5 -28
View File
@@ -1,36 +1,13 @@
import type { RouteRecordRaw } from 'vue-router'
import { getConfigApp, isStoreApp } from '@/utils/config'
const Orders: RouteRecordRaw = {
/** ریدایرکت آدرس قدیمی — منو زیر پیکربندی است */
const GiftCard: RouteRecordRaw = {
name: 'giftCard',
path: '/giftCard',
component: () => import('@core/layouts/BasicLayout.vue'),
redirect: { name: 'giftCardMain' },
meta: {
icon: 'vuesax-linear:gift',
permissionsKey: 'giftCard',
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
disabled: false,
hideMenu: !isStoreApp() && getConfigApp('name') != 'garoosi',
hideChildren: true,
order: 7
},
children: [
{
name: 'giftCardMain',
path: '',
component: () => import('@/pages/menuPages/giftCards/index.vue'),
meta: {
permissionsKey: 'project',
icon: 'vuesax-linear:empty-wallet-time',
order: 3,
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
disabled: false,
hideMenu: false
//hideChildren: false
}
}
]
hideMenu: true
}
}
export default Orders
export default GiftCard