From 411c7bcfb64581060c459d6a124b58cafadd983a Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 11 四月 2024 20:35:37 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx |    6 +++++-
 1 files changed, 5 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 472ee07..189ce7d 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
@@ -14,11 +14,15 @@
     const [activeTabKey, setActiveTabKey] = useState('view');
     const [curNo, setCurNo] = React.useState(''); // just used to modify the drawer title
 
+    props.setDrawerWidth(window.innerWidth * 0.4);
+
     useEffect(() => {
         if (!curSprite) {
             return
         }
-        props.setDrawerTitle(intl.formatMessage({ id: 'map.shuttle.no', defaultMessage: '绌挎杞﹀彿' }) + ': ' + curNo);
+        const deviceNo = curSprite?.data?.no;
+        props.setDrawerTitle(intl.formatMessage({ id: 'map.shuttle.no', defaultMessage: '绌挎杞﹀彿' }) + ': ' + deviceNo);
+        setCurNo(deviceNo)
     }, [curNo]);
 
     const contentList = {

--
Gitblit v1.9.1