58 lines
1.5 KiB
TypeScript
58 lines
1.5 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const Products: RouteRecordRaw = {
|
|
name: 'products',
|
|
path: '/products',
|
|
component: () => import('@core/layouts/BasicLayout.vue'),
|
|
redirect: { name: 'productsMain_limitedOrder' },
|
|
meta: {
|
|
icon: 'vuesax-linear:box',
|
|
// permissionsKey: 'project',
|
|
title: 'محصولات',
|
|
disabled: false,
|
|
hideMenu: false,
|
|
hideChildren: true,
|
|
order: 3
|
|
},
|
|
children: [
|
|
{
|
|
name: 'productsMain',
|
|
path: '',
|
|
component: () => import('@/pages/menuPages/products/index.vue'),
|
|
meta: {
|
|
// permissionsKey: 'config',
|
|
icon: 'vuesax-linear:box',
|
|
title: 'محصولات',
|
|
disabled: false,
|
|
hideMenu: true
|
|
//hideChildren: false
|
|
},
|
|
children: [
|
|
{
|
|
name: 'productsMain_limitedOrder',
|
|
path: 'list',
|
|
component: () => import('@/pages/menuPages/products/base/index.vue'),
|
|
meta: {
|
|
// permissionsKey: 'config.limitedOrder',
|
|
icon: 'vuesax-linear:box',
|
|
title: 'لیست محصولات'
|
|
}
|
|
},
|
|
{
|
|
name: 'productsMain_archive',
|
|
path: 'archive',
|
|
component: () => import('@/pages/menuPages/products/archive/index.vue'),
|
|
meta: {
|
|
// permissionsKey: 'user',
|
|
icon: 'vuesax-linear:save-2',
|
|
title: 'بایگانی'
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
export default Products
|
|
|