diff --git a/src/views/form/template/index.vue b/src/views/form/template/index.vue index b44a789..69f6546 100644 --- a/src/views/form/template/index.vue +++ b/src/views/form/template/index.vue @@ -578,17 +578,23 @@ } function handleView(record: Recordable) { - if (record.workflowData?.taskIds && record.workflowData.taskIds.length) { - const { processId, schemaId } = record.workflowData; + const { processId, taskIds, schemaId } = record.workflowData || {}; + if (taskIds && taskIds.length) { router.push({ path: '/flow/' + schemaId + '/' + (processId || '') + '/approveFlow', query: { - readonly: 1, - taskId: '', - rtId: currentRoute.value.query.rtId + taskId: taskIds[0], } }); - } else { + } else if (schemaId && !taskIds && processId) { + router.push({ + path: '/flow/' + schemaId + '/' + processId + '/approveFlow', + query: { + readonly: 1, + taskId: '', + } + }); + }else { const info = { id: record[pkField.value], releaseId: menuId.value,