From 213de676b386af4a195df899c23d057d889095d1 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 22 十月 2024 16:13:25 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/insight/agv/AgvThree.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zy-acs-flow/src/map/insight/agv/AgvThree.js b/zy-acs-flow/src/map/insight/agv/AgvThree.js index 58724ff..e45c5da 100644 --- a/zy-acs-flow/src/map/insight/agv/AgvThree.js +++ b/zy-acs-flow/src/map/insight/agv/AgvThree.js @@ -169,8 +169,12 @@ } this.camera = null; this.objects = []; - while (this.dom?.firstChild) { - this.dom.removeChild(this.dom.firstChild); + if (this.dom) { + while (this.dom.firstChild) { + if (this.dom.contains(this.dom.firstChild)) { + this.dom.removeChild(this.dom.firstChild); + } + } } } -- Gitblit v1.9.1