Commit b876f0dbd113d4368a75536926f7ae676943d4a5

Authored by chenxt
1 parent ca700d17

解决界面报错

src/mes/operationGuide/component/FlowChart.js
@@ -335,7 +335,7 @@ const BroadsideCardRender = (props) => { @@ -335,7 +335,7 @@ const BroadsideCardRender = (props) => {
335 335
336 const graph = new window.X6.Graph({ 336 const graph = new window.X6.Graph({
337 container:document.getElementById('container'), 337 container:document.getElementById('container'),
338 - width: document.querySelector('#flowBody').offsetWidth, 338 + width: document.querySelector('#flowBody')?.offsetWidth,
339 height: document.querySelector('#flowBody').offsetHeight 339 height: document.querySelector('#flowBody').offsetHeight
340 }); 340 });
341 341