From b7eca0757905d152b031a053116fb8c077314517 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期五, 29 三月 2024 16:31:18 +0800
Subject: [PATCH] #
---
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