From 9e2e9f912340b806e32593689a408f477e0a1516 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 07 四月 2024 09:49:43 +0800
Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack

---
 zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
index dfaaf50..a32ca8b 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
@@ -13,12 +13,18 @@
 const ShuttleDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
+    const { curSprite, curFloor } = props;
+
     const [activeTabKey, setActiveTabKey] = useState('json');
+
+    useEffect(() => {
+        props.setDrawerTitle(curSprite.data.no);
+    }, [curSprite]);
 
     const contentList = {
         json: (
             <ShowJson
-                data={props.curSprite.data}
+                data={curSprite.data}
             />
         ),
     };

--
Gitblit v1.9.1