!104 fix #I4VZCZ canvas自适应

Merge pull request !104 from 感觉/master
This commit is contained in:
芋道源码
2022-03-22 09:45:47 +00:00
committed by Gitee

View File

@ -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}`);