2026-05-04 16:22:10 +03:30
|
|
|
import type { RouteRecordRaw } from 'vue-router'
|
2026-06-11 22:29:28 +03:30
|
|
|
import { getConfigApp, isStoreApp } from '@/utils/config'
|
2026-05-04 16:22:10 +03:30
|
|
|
|
|
|
|
|
const Orders: RouteRecordRaw = {
|
|
|
|
|
name: 'giftCard',
|
|
|
|
|
path: '/giftCard',
|
|
|
|
|
component: () => import('@core/layouts/BasicLayout.vue'),
|
|
|
|
|
redirect: { name: 'giftCardMain' },
|
|
|
|
|
meta: {
|
|
|
|
|
icon: 'vuesax-linear:gift',
|
|
|
|
|
permissionsKey: 'giftCard',
|
2026-06-11 22:29:28 +03:30
|
|
|
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
|
2026-05-04 16:22:10 +03:30
|
|
|
disabled: false,
|
2026-06-11 22:29:28 +03:30
|
|
|
hideMenu: !isStoreApp() && getConfigApp('name') != 'garoosi',
|
2026-05-04 16:22:10 +03:30
|
|
|
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,
|
2026-06-11 22:29:28 +03:30
|
|
|
title: isStoreApp() ? 'کارت هدیه و تخفیف' : 'کارت هدیه',
|
2026-05-04 16:22:10 +03:30
|
|
|
disabled: false,
|
|
|
|
|
hideMenu: false
|
|
|
|
|
//hideChildren: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Orders
|