From 845dda551328404ec76dbeb7c3b5ad167c47c793 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期三, 03 四月 2024 11:05:24 +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