From bcaa1de4805147e8d0962d0bf5465bb0abcd9a99 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 21 三月 2024 09:52:58 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/index.jsx | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index 1e1ada1..0abed28 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -84,6 +84,8 @@
const [dataFetched, setDataFetched] = React.useState(false);
const [curSprite, setCurSPrite] = React.useState(null);
const prevCurSpriteRef = React.useRef();
+ const hasFloor = true;
+ // const [hasFloor, setHasFloor] = React.useState(true);
const [curFloor, setCurFloor] = React.useState(1);
// init func
@@ -347,10 +349,13 @@
</Header>
<Content ref={contentRef} className={styles.content}>
<div ref={mapRef} style={{ position: "relative" }} >
- <MapFloor
- curFloor={curFloor}
- setCurFloor={setCurFloor}
- />
+ {hasFloor && (
+ <MapFloor
+ curFloor={curFloor}
+ setCurFloor={setCurFloor}
+ />
+ )}
+
<FloatButton.Group
shape="square"
style={{
--
Gitblit v1.9.1