From b876f0dbd113d4368a75536926f7ae676943d4a5 Mon Sep 17 00:00:00 2001 From: chenxt <10125295+chen-xintao97@user.noreply.gitee.com> Date: Fri, 16 Jan 2026 17:20:21 +0800 Subject: [PATCH] 解决界面报错 --- src/mes/operationGuide/component/FlowChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mes/operationGuide/component/FlowChart.js b/src/mes/operationGuide/component/FlowChart.js index 5e5791e..daeaf5e 100644 --- a/src/mes/operationGuide/component/FlowChart.js +++ b/src/mes/operationGuide/component/FlowChart.js @@ -335,7 +335,7 @@ const BroadsideCardRender = (props) => { const graph = new window.X6.Graph({ container:document.getElementById('container'), - width: document.querySelector('#flowBody').offsetWidth, + width: document.querySelector('#flowBody')?.offsetWidth, height: document.querySelector('#flowBody').offsetHeight }); -- libgit2 0.22.2