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/shelf/ShelfMain.jsx |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx b/zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx
index 636150e..7c93b4c 100644
--- a/zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx
+++ b/zy-acs-flow/src/map/insight/shelf/ShelfMain.jsx
@@ -71,8 +71,14 @@
             }
 
             Promise.all(promises).then(() => {
-                shelfThree.setNewSelectedMesh(curLocNo);
-                shelfThree.rePerspective(singleHeight * info.length, 500);
+                if (shelfThree) {
+                    if (typeof shelfThree.setNewSelectedMesh === 'function') {
+                        shelfThree.setNewSelectedMesh(curLocNo);
+                    }
+                    if (typeof shelfThree.rePerspective === 'function') {
+                        shelfThree.rePerspective(singleHeight * info.length, 500);
+                    }
+                }
             }).catch(error => {
                 console.error(error);
             });

--
Gitblit v1.9.1