Commit b876f0dbd113d4368a75536926f7ae676943d4a5
1 parent
ca700d17
解决界面报错
Showing
1 changed file
with
1 additions
and
1 deletions
src/mes/operationGuide/component/FlowChart.js
| ... | ... | @@ -335,7 +335,7 @@ const BroadsideCardRender = (props) => { |
| 335 | 335 | |
| 336 | 336 | const graph = new window.X6.Graph({ |
| 337 | 337 | container:document.getElementById('container'), |
| 338 | - width: document.querySelector('#flowBody').offsetWidth, | |
| 338 | + width: document.querySelector('#flowBody')?.offsetWidth, | |
| 339 | 339 | height: document.querySelector('#flowBody').offsetHeight |
| 340 | 340 | }); |
| 341 | 341 | ... | ... |