!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
commit cefcff6524
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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