From 3fa7cdec6ce44f07a0dc7e1910511ead606990f3 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 11 九月 2025 08:19:53 +0800 Subject: [PATCH] 1 --- 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