fix: 流程详情页与流程发起页修改为动态路由,解决页面数据不刷新与刷新转圈的问题

This commit is contained in:
konbai
2022-11-27 15:16:44 +08:00
parent 76ed6b4cc5
commit 0d8d7c5e63
8 changed files with 39 additions and 44 deletions

View File

@@ -74,25 +74,6 @@ export const constantRoutes = [
}
]
},
{
path: '/work',
component: Layout,
hidden: true,
children: [
{
path: 'start',
component: () => import('@/views/workflow/work/start'),
name: 'start',
meta: { title: '发起流程', icon: '' }
},
{
path: 'detail',
component: () => import('@/views/workflow/work/detail'),
name: 'Detail',
meta: { title: '流程详情', icon: '' }
}
]
},
{
path: '/tool',
component: Layout,
@@ -193,7 +174,27 @@ export const dynamicRoutes = [
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
}
]
}
},
{
path: '/workflow/process',
component: Layout,
hidden: true,
permissions: ['workflow:process:query'],
children: [
{
path: 'start/:deployId([\\w|\\-]+)',
component: () => import('@/views/workflow/work/start'),
name: 'WorkStart',
meta: { title: '发起流程', icon: '' }
},
{
path: 'detail/:procInsId([\\w|\\-]+)',
component: () => import('@/views/workflow/work/detail'),
name: 'WorkDetail',
meta: { title: '流程详情', activeMenu: '/work/own' }
}
]
},
]
// 防止连续点击多次路由报错