From 93d8a38f9fd0746b9ce6ac7541bf2b8b48f7c63c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 18 十二月 2024 13:11:24 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/operationRecord/OperationDetail.jsx | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/zy-acs-flow/src/page/operationRecord/OperationDetail.jsx b/zy-acs-flow/src/page/operationRecord/OperationDetail.jsx
index 1515960..ca45841 100644
--- a/zy-acs-flow/src/page/operationRecord/OperationDetail.jsx
+++ b/zy-acs-flow/src/page/operationRecord/OperationDetail.jsx
@@ -11,9 +11,8 @@
import { format } from 'date-fns';
const OperationDetail = (props) => {
- const { operation, setDrawerVal, ...rest } = props;
- console.log(operation);
-
+ const { operation, ...rest } = props;
+
return (
<>
<Box width={{ xs: '100vW', sm: 400 }} mt={{ xs: 2, sm: 1 }}>
@@ -26,7 +25,7 @@
variant="body2"
flexWrap="nowrap"
>
- {operation.namespace}
+ {operation.namespace || ''}
</Typography>
</Labeled>
</Grid>
@@ -36,7 +35,7 @@
variant="body2"
flexWrap="nowrap"
>
- {operation.url}
+ {operation.url || ''}
</Typography>
</Labeled>
</Grid>
@@ -56,14 +55,14 @@
variant="body2"
flexWrap="nowrap"
>
- {operation.userId$}
+ {operation.userId$ || ''}
</Typography>
</Labeled>
</Grid>
<Grid item sm={12}>
<TextField
label="Request"
- value={operation.request}
+ value={operation.request || ''}
maxRows={15}
multiline
/>
@@ -72,7 +71,7 @@
<Grid item sm={12}>
<TextField
label="Response"
- value={operation.response}
+ value={operation.response || ''}
maxRows={15}
multiline
/>
@@ -83,7 +82,7 @@
variant="body2"
flexWrap="nowrap"
>
- {operation.clientIp}
+ {operation.clientIp || ''}
</Typography>
</Labeled>
</Grid>
--
Gitblit v1.9.1