From 23733d8b91d0a5e83dc47978db12f6aea102975a Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 27 二月 2025 08:58:16 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/showJson.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
index c545c33..c103412 100644
--- a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
@@ -36,13 +36,13 @@
 
 const ShowJSON = (props) => {
     const { styles } = useStyles();
-    const { curSprite } = props;
+    const { data } = props;
 
-    const formattedJSON = JSON.stringify(curSprite.data, null, 2);
+    const formattedJSON = JSON.stringify(data, null, props.jsonType ?? 2);
 
     return (
         <>
-            <div className={styles.jsonBox}>
+            <div className={styles.jsonBox} style={{ height: props.height }}>
                 <textarea
                     readOnly
                     className={styles.jsonContent}

--
Gitblit v1.9.1