增加了安全扫描的任务失败原因

This commit is contained in:
Monster
2025-08-12 10:38:29 +08:00
parent 605c03ce83
commit b3708bd827
4 changed files with 115 additions and 13 deletions

View File

@@ -121,17 +121,19 @@ const CodeScanTaskList = ({
ml: '4px'
}}></Box>
</Stack>}
{(record.status === 'failed') && <Stack direction={'row'}>
<ErrorOutlineIcon sx={{
width: '16px',
height: '16px',
color: 'error.main'
}} />
<Box sx={{
lineHeight: '16px',
ml: '4px'
}}></Box>
</Stack>}
{(record.status === 'failed') && <Tooltip title={record.error}>
<Stack direction={'row'}>
<ErrorOutlineIcon sx={{
width: '16px',
height: '16px',
color: 'error.main'
}} />
<Box sx={{
lineHeight: '16px',
ml: '4px'
}}></Box>
</Stack>
</Tooltip>}
</Box>
</Stack>
);