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
+23 -3
View File
@@ -1,5 +1,4 @@
import type { RouteRecordRaw } from 'vue-router'
import { getConfigApp, isStoreApp } from '@/utils/config'
const Setting: RouteRecordRaw = {
name: 'settings',
path: '/settings',
@@ -62,6 +61,27 @@ const Setting: RouteRecordRaw = {
title: 'هشدار قیمت'
}
},
{
name: 'smsMain',
path: 'sms',
component: () => import('@/pages/menuPages/sms/index.vue'),
meta: {
permissionsKey: 'sms',
icon: 'vuesax-linear:sms',
title: 'پیامک‌ها'
}
},
{
name: 'giftCardMain',
path: 'giftCard',
component: () => import('@/pages/menuPages/giftCards/index.vue'),
meta: {
permissionsKey: 'project',
icon: 'vuesax-linear:gift',
title: 'کارت هدیه',
hideMenu: true
}
},
{
name: 'discounts',
path: 'discounts',
@@ -70,7 +90,7 @@ const Setting: RouteRecordRaw = {
permissionsKey: 'discounts',
icon: 'vuesax-linear:discount-shape',
title: 'تخفیفات',
hideMenu: isStoreApp() || getConfigApp('name') !== 'goldsun'
hideMenu: true
}
},
{
@@ -90,7 +110,7 @@ const Setting: RouteRecordRaw = {
meta: {
icon: 'vuesax-linear:image',
title: 'بنرها',
hideMenu: getConfigApp('name') !== "garoosi"
hideMenu: true
}
},
]