diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue index 33520627..7ffe11b8 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue @@ -24,6 +24,11 @@ const view = ref({ watch( () => props.loading, async (value) => { + // 重置 + view.value = { + bpmnXml: '' + } + // 加载最新 if (value && props.id) { view.value = await ProcessInstanceApi.getProcessInstanceBpmnModelView(props.id) } diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 6fe4565e..9890f698 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -76,13 +76,19 @@
+ v-show=" + processDefinition.modelType && processDefinition.modelType === BpmModelType.BPMN + " + :id="`${id}`" + :loading="processInstanceLoading" + />