fix: 移除新增的tabKey,调整对应的路由设计,方便关闭路由和修改标题

feat: 新样式的退回操作对话框
This commit is contained in:
gaoyunqi
2024-02-28 16:16:17 +08:00
parent cb075df41c
commit 8a8d18a33a
10 changed files with 362 additions and 250 deletions

View File

@ -125,8 +125,8 @@ export const USERCENTER_ROUTE: AppRouteRecordRaw = {
]
};
export const FLOW_ROUTE: AppRouteRecordRaw = {
path: '/flow',
export const FLOW_ROUTE: AppRouteRecordRaw[] = [{
path: '/flow/:arg1/:arg2',
name: 'Flow',
meta: {
title: '流程'
@ -148,18 +148,27 @@ export const FLOW_ROUTE: AppRouteRecordRaw = {
meta: {
title: '审批流程'
}
},
}
]
}, {
path: '/flowList',
name: 'FlowList',
meta: {
title: '流程列表'
},
component: LAYOUT,
children: [
/* 菜单不支持复用不同菜单如果path或者name一样会报错 */
{
path: 'flowList',
path: 'draft',
name: 'FlowListPage',
component: () => import('/@/views/secondDev/processTasksPage.vue'),
meta: {
title: '流程列表'
title: '草稿箱'
}
},
{
path: 'flowList2',
path: 'todo',
name: 'FlowListPage2',
component: () => import('/@/views/secondDev/processTasksPage.vue'),
meta: {
@ -167,4 +176,4 @@ export const FLOW_ROUTE: AppRouteRecordRaw = {
}
}
]
};
}];

View File

@ -53,6 +53,6 @@ export const basicRoutes = [
PAGE_NOT_FOUND_ROUTE,
SYSTEM_ROUTE,
USERCENTER_ROUTE,
FLOW_ROUTE
...FLOW_ROUTE
// CUSTOMFORM_ROUTE,
];