cheng dashbord data and ui
This commit is contained in:
@@ -29,12 +29,16 @@ export const adminRoute: RouteRecordRaw[] = [
|
||||
redirect: '/my-data'
|
||||
},
|
||||
{
|
||||
// Legacy had two dashboards ("آمار تک فروشی" at /dashboard/analytics and
|
||||
// "آمار عمده فروشی" at /dashboard/ecommerce) behind two rids. Merged into
|
||||
// one screen behind one rid (dashboard.view) — see Dashboard.vue. Both
|
||||
// old paths still resolve so any bookmarked/linked URL keeps working.
|
||||
path: '/dashboard/analytics',
|
||||
name: 'dashboard-analytics',
|
||||
component: () => import('../views/DashboardAnalytics.vue'),
|
||||
component: () => import('../views/Dashboard.vue'),
|
||||
meta: {
|
||||
rule: 'editor',
|
||||
role: 'dashboard.tak'
|
||||
role: 'dashboard.view'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -49,10 +53,10 @@ export const adminRoute: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/dashboard/ecommerce',
|
||||
name: 'dashboard-ecommerce',
|
||||
component: () => import('../views/DashboardECommerce.vue'),
|
||||
component: () => import('../views/Dashboard.vue'),
|
||||
meta: {
|
||||
rule: 'admin',
|
||||
role: 'dashboard.omde'
|
||||
role: 'dashboard.view'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -22,7 +22,9 @@ export const branchRoute: RouteRecordRaw[] = [
|
||||
component: () => import('../views/branch/dashboard.vue'),
|
||||
meta: {
|
||||
rule: 'admin',
|
||||
role: 'dashboard.omde'
|
||||
// was 'dashboard.omde' — merged into the single 'dashboard.view' rid
|
||||
// when the two admin dashboards became one screen.
|
||||
role: 'dashboard.view'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user