From ab420e4120afba95e503bc69cf78e28776f16d46 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 17 Feb 2022 01:28:52 +0800 Subject: [PATCH] =?UTF-8?q?v3.7.0=20=E8=B7=B3=E8=BD=AC=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E7=9B=B8=E5=AF=B9=E5=BA=94=E7=9A=84=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/router/index.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/yudao-ui-admin/src/router/index.js b/yudao-ui-admin/src/router/index.js index 0da45e8f6..f6856efef 100644 --- a/yudao-ui-admin/src/router/index.js +++ b/yudao-ui-admin/src/router/index.js @@ -20,6 +20,7 @@ Vue.use(Router) title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 + activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 } */ @@ -87,7 +88,7 @@ export const constantRoutes = [ path: 'type/data/:dictId(\\d+)', component: (resolve) => require(['@/views/system/dict/data'], resolve), name: 'Data', - meta: {title: '字典数据', icon: ''} + meta: {title: '字典数据', icon: '', activeMenu: '/system/dict'} } ] }, { @@ -98,7 +99,7 @@ export const constantRoutes = [ path: 'log', component: (resolve) => require(['@/views/infra/job/log'], resolve), name: 'JobLog', - meta: {title: '调度日志'} + meta: {title: '调度日志', activeMenu: '/infra/job'} } ] }, { @@ -109,7 +110,7 @@ export const constantRoutes = [ path: 'edit/:tableId(\\d+)', component: (resolve) => require(['@/views/tool/codegen/editTable'], resolve), name: 'GenEdit', - meta: {title: '修改生成配置'} + meta: {title: '修改生成配置', activeMenu: '/tool/codegen'} } ] }, { @@ -121,12 +122,12 @@ export const constantRoutes = [ path: 'oa/leave/create', component: (resolve) => require(['@/views/bpm/oa/leave/create'], resolve), name: '发起 OA 请假', - meta: {title: '发起 OA 请假', icon: 'form'} + meta: {title: '发起 OA 请假', icon: 'form', activeMenu: '/bpm/oa/leave'} }, { path: 'oa/leave/detail', component: (resolve) => require(['@/views/bpm/oa/leave/detail'], resolve), name: '查看 OA 请假', - meta: {title: '查看 OA 请假', icon: 'view'} + meta: {title: '查看 OA 请假', icon: 'view', activeMenu: '/bpm/oa/leave'} } ] }, { @@ -137,27 +138,27 @@ export const constantRoutes = [ path: 'manager/form/edit', component: (resolve) => require(['@/views/bpm/form/formEditor'], resolve), name: '流程表单-编辑', - meta: {title: '流程表单-编辑'} + meta: {title: '流程表单-编辑', activeMenu: '/bpm/manager/form'} }, { path: 'manager/definition', component: (resolve) => require(['@/views/bpm/definition/index'], resolve), name: '流程定义', - meta: {title: '流程定义'} + meta: {title: '流程定义', activeMenu: '/bpm/manager/model'} }, { path: 'manager/model/design', component: (resolve) => require(['@/views/bpm/model/modelEditor'], resolve), name: '设计流程', - meta: {title: '设计流程'} + meta: {title: '设计流程', activeMenu: '/bpm/manager/model'} }, { path: 'process-instance/create', component: (resolve) => require(['@/views/bpm/processInstance/create'], resolve), name: '发起流程', - meta: {title: '发起流程'} + meta: {title: '发起流程', activeMenu: '/bpm/task/my'} }, { path: 'process-instance/detail', component: (resolve) => require(['@/views/bpm/processInstance/detail'], resolve), name: '流程详情', - meta: {title: '流程详情'} + meta: {title: '流程详情', activeMenu: '/bpm/task/my'} } ] }