fix chart
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import { isDeployAdmin } from '@/utils/deployAdmin'
|
||||
import { useUserStore } from '@/store/userStore'
|
||||
|
||||
const Setting: RouteRecordRaw = {
|
||||
name: 'settings',
|
||||
path: '/settings',
|
||||
@@ -26,9 +29,46 @@ const Setting: RouteRecordRaw = {
|
||||
title: 'پیکربندی',
|
||||
disabled: false,
|
||||
hideMenu: true
|
||||
//hideChildren: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
name: 'configuration',
|
||||
path: 'configuration',
|
||||
component: () => import('@/pages/menuPages/configuration/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:setting-2',
|
||||
title: 'تنظیمات',
|
||||
order: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'advancedConfiguration',
|
||||
path: 'advanced-configuration',
|
||||
component: () => import('@/pages/menuPages/configuration/index.vue'),
|
||||
props: { mode: 'system' },
|
||||
meta: {
|
||||
deployAdminOnly: true,
|
||||
icon: 'vuesax-linear:code-circle',
|
||||
title: 'تنظیمات پیشرفته',
|
||||
order: 2
|
||||
},
|
||||
beforeEnter() {
|
||||
const userStore = useUserStore()
|
||||
if (!isDeployAdmin(userStore.userInfo?.mobile)) {
|
||||
return { name: 'configuration' }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'banners',
|
||||
path: 'banners',
|
||||
component: () => import('@/pages/menuPages/banners/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:image',
|
||||
title: 'بنرها',
|
||||
order: 3
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'settingMain_limitedOrder',
|
||||
path: 'limitedOrder',
|
||||
@@ -36,19 +76,8 @@ const Setting: RouteRecordRaw = {
|
||||
meta: {
|
||||
permissionsKey: 'config.limitedOrder',
|
||||
icon: 'vuesax-linear:document-text',
|
||||
title: '' +
|
||||
'' +
|
||||
'محدودیت سفارش'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'usersMain',
|
||||
path: 'admins',
|
||||
component: () => import('@/pages/menuPages/users/index.vue'),
|
||||
meta: {
|
||||
permissionsKey: 'user',
|
||||
icon: 'vuesax-linear:profile',
|
||||
title: 'لیست مدیران'
|
||||
title: 'محدودیت سفارش',
|
||||
order: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -58,7 +87,8 @@ const Setting: RouteRecordRaw = {
|
||||
meta: {
|
||||
permissionsKey: 'priceTriggers',
|
||||
icon: 'vuesax-linear:notification-bing',
|
||||
title: 'هشدار قیمت'
|
||||
title: 'هشدار قیمت',
|
||||
order: 5
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -68,7 +98,8 @@ const Setting: RouteRecordRaw = {
|
||||
meta: {
|
||||
permissionsKey: 'sms',
|
||||
icon: 'vuesax-linear:sms',
|
||||
title: 'پیامکها'
|
||||
title: 'پیامکها',
|
||||
order: 6
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -79,7 +110,8 @@ const Setting: RouteRecordRaw = {
|
||||
permissionsKey: 'project',
|
||||
icon: 'vuesax-linear:gift',
|
||||
title: 'کارت هدیه',
|
||||
hideMenu: true
|
||||
hideMenu: true,
|
||||
order: 7
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -90,28 +122,21 @@ const Setting: RouteRecordRaw = {
|
||||
permissionsKey: 'discounts',
|
||||
icon: 'vuesax-linear:discount-shape',
|
||||
title: 'تخفیفات',
|
||||
hideMenu: true
|
||||
hideMenu: true,
|
||||
order: 8
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'configuration',
|
||||
path: 'configuration',
|
||||
component: () => import('@/pages/menuPages/configuration/index.vue'),
|
||||
name: 'usersMain',
|
||||
path: 'admins',
|
||||
component: () => import('@/pages/menuPages/users/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:setting-2',
|
||||
title: 'تنظیمات'
|
||||
//hideChildren: false
|
||||
permissionsKey: 'user',
|
||||
icon: 'vuesax-linear:profile',
|
||||
title: 'مدیران',
|
||||
order: 9
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'banners',
|
||||
path: 'banners',
|
||||
component: () => import('@/pages/menuPages/banners/index.vue'),
|
||||
meta: {
|
||||
icon: 'vuesax-linear:image',
|
||||
title: 'بنرها'
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user