feat: 流程详情页打开后,关闭跳回对应的列表页

This commit is contained in:
gaoyunqi
2024-04-22 12:34:17 +08:00
parent 8b0174ddb9
commit 66669b7888
5 changed files with 22 additions and 6 deletions

View File

@ -80,6 +80,8 @@ const { data, approveUserData, initProcessData, notificationSuccess, notificatio
const currentRoute = router.currentRoute.value;
const rParams = currentRoute.params;
const fullPath = currentRoute.fullPath;
const parentRoutePath = localStorage.getItem('parentRoutePath');
localStorage.removeItem('parentRoutePath');
const rSchemaId = rParams.arg1;
const rDraftsId = rParams.arg2;
const taskId = ref();
@ -123,7 +125,7 @@ function openFlowChart() {
}
function close() {
tabStore.closeTab(currentRoute, router);
tabStore.closeTab(currentRoute, router, parentRoutePath);
}
const props = defineProps({