From 8ef2bb5e46d84594e6ed632c07ea0b47a1bf6c4d Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 11 十二月 2024 16:15:17 +0800
Subject: [PATCH] #path similarity
---
zy-asrs-flow/src/pages/map/drawer/showJson.jsx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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