From 7f70cb15d035f0c233b9e62b9e43aa985317c908 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 04 十一月 2024 10:22:45 +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