From 4037cc0425548ffb0d9780f9e970b56a93695989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9F=E8=A7=89?= <1143339612@qq.com> Date: Mon, 21 Mar 2022 06:22:44 +0000 Subject: [PATCH] =?UTF-8?q?fix=20#I4VZCZ=20canvas=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bpmnProcessDesigner/package/designer/ProcessViewer.vue | 2 ++ 1 file changed, 2 insertions(+) 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}`);