diff --git a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue index 66660094b..73beb13fd 100644 --- a/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue +++ b/yudao-ui-admin/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -96,6 +96,8 @@ export default { } // 高亮流程图 await this.highlightDiagram(); + const canvas = this.bpmnModeler.get('canvas'); + canvas.zoom("fit-viewport", "auto"); } catch (e) { console.error(e); // console.error(`[Process Designer Warn]: ${e?.message || e}`);