From f6efb4ad6bcc4f1d31998cb507f1fa57bfc82e34 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 10 四月 2024 14:53:32 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/index.jsx       |    2 ++
 zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index c005c2a..654054f 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -58,6 +58,7 @@
                             curSprite={curSprite}
                             curFloor={curFloor}
                             setDrawerTitle={setDrawerTitle}
+                            setDrawerWidth={setDrawerWidth}
                         />
                     </>
                 )}
@@ -77,6 +78,7 @@
                             curSprite={curSprite}
                             curFloor={curFloor}
                             setDrawerTitle={setDrawerTitle}
+                            setDrawerWidth={setDrawerWidth}
                         />
                     </>
                 )}
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
index 8321440..89b43b6 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -13,6 +13,8 @@
     const [activeTabKey, setActiveTabKey] = useState('view');
     const [curLocNo, setCurLocNo] = React.useState(''); // just used to modify the drawer title
 
+    props.setDrawerWidth(window.innerWidth * 0.35);
+
     useEffect(() => {
         if (!curSprite) {
             return

--
Gitblit v1.9.1