feat: 驾驶舱改名经营看板+改善行动闭环按钮+统一菜单名
This commit is contained in:
@@ -5,7 +5,7 @@ const routes = [
|
||||
{ path: '/login', name: 'Login', component: () => import('@/views/Login.vue'), meta: { noAuth: true } },
|
||||
{ path: '/', component: () => import('@/layouts/MainLayout.vue'), redirect: '/dashboard',
|
||||
children: [
|
||||
{ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/Dashboard.vue'), meta: { title: '驾驶舱', roles: ['ceo', 'finance', 'business', 'it'] } },
|
||||
{ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/Dashboard.vue'), meta: { title: '经营看板', roles: ['ceo', 'finance', 'business', 'it'] } },
|
||||
{ path: 'kpis', name: 'KPIs', component: () => import('@/views/KPIList.vue'), meta: { title: 'KPI字典', roles: ['ceo', 'finance', 'business', 'it'] } },
|
||||
{ path: 'kpis/:id', name: 'KPIDetail', component: () => import('@/views/KPIDetail.vue'), meta: { title: 'KPI详情', roles: ['ceo', 'finance', 'business', 'it'] } },
|
||||
{ path: 'maps', name: 'Maps', component: () => import('@/views/MapList.vue'), meta: { title: '战略地图', roles: ['ceo', 'finance'] } },
|
||||
@@ -70,7 +70,7 @@ router.beforeEach((to, _from, next) => {
|
||||
const routeRoles = to.meta.roles as string[] | undefined
|
||||
|
||||
if (routeRoles && !routeRoles.includes(role)) {
|
||||
// 权限不足,跳转到驾驶舱或401页
|
||||
// 权限不足,跳转到经营看板或401页
|
||||
next('/dashboard')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user