From 781f447c1c8b902f66fc71ae42fc395c83e590c6 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 24 三月 2024 12:02:54 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/batch/index.jsx | 1 +
zy-asrs-flow/src/pages/map/drawer/showJson.jsx | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/batch/index.jsx b/zy-asrs-flow/src/pages/map/batch/index.jsx
index ca9ddf9..3dc251a 100644
--- a/zy-asrs-flow/src/pages/map/batch/index.jsx
+++ b/zy-asrs-flow/src/pages/map/batch/index.jsx
@@ -61,6 +61,7 @@
})
}
height='60%'
+ jsonType={0}
/>
</Card>
diff --git a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
index 1988748..c103412 100644
--- a/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/showJson.jsx
@@ -38,11 +38,11 @@
const { styles } = useStyles();
const { data } = props;
- const formattedJSON = JSON.stringify(data, null, 0);
+ const formattedJSON = JSON.stringify(data, null, props.jsonType ?? 2);
return (
<>
- <div className={styles.jsonBox} style={{height: props.height}}>
+ <div className={styles.jsonBox} style={{ height: props.height }}>
<textarea
readOnly
className={styles.jsonContent}
--
Gitblit v1.9.1