From fc8e052a4af56adaead767c17bbace6835705744 Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Wed, 3 Apr 2024 16:31:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=81=E7=A8=8B=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=A1=A5=E5=85=85=E9=80=89=E9=A1=B9=E5=8D=A1?= =?UTF-8?q?=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondDev/approveFlowPage.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/secondDev/approveFlowPage.vue b/src/views/secondDev/approveFlowPage.vue index ca06844..7fcd45e 100644 --- a/src/views/secondDev/approveFlowPage.vue +++ b/src/views/secondDev/approveFlowPage.vue @@ -68,6 +68,7 @@ const { bus, FLOW_PROCESSED } = useEventBus(); const tabStore = useMultipleTabStore(); const router = useRouter(); const currentRoute = router.currentRoute.value; +const fullPath = currentRoute.fullPath; const rQuery = currentRoute.query; const rParams = currentRoute.params; const schemaId = ref(rParams.arg1); @@ -176,6 +177,11 @@ onMounted(async () => { try { let res = await getApprovalProcess(unref(taskId), unref(processId)); initProcessData(res); + const title = res?.schemaInfo?.name; + if (title) { + const tabPrefix = readonly.value ? '查看' : '审批'; + tabStore.changeTitle(fullPath, `${tabPrefix}:${title}`); + } if (!readonly.value) { if (res.buttonConfigs) { approvalData.buttonConfigs = res.buttonConfigs;