fix #I4VZCZ canvas自适应

This commit is contained in:
感觉 2022-03-21 06:22:44 +00:00 committed by Gitee
parent 000263e092
commit 4037cc0425
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -96,6 +96,8 @@ export default {
} }
// //
await this.highlightDiagram(); await this.highlightDiagram();
const canvas = this.bpmnModeler.get('canvas');
canvas.zoom("fit-viewport", "auto");
} catch (e) { } catch (e) {
console.error(e); console.error(e);
// console.error(`[Process Designer Warn]: ${e?.message || e}`); // console.error(`[Process Designer Warn]: ${e?.message || e}`);