mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-14 15:36:01 +00:00
perf: 优化命令记录风险等级的显示
This commit is contained in:
parent
fa42ea7cdf
commit
1d91d4d065
@ -68,7 +68,7 @@ export default {
|
|||||||
width: '105px',
|
width: '105px',
|
||||||
formatter: (row, col, cellValue) => {
|
formatter: (row, col, cellValue) => {
|
||||||
const display = row['risk_level'].label
|
const display = row['risk_level'].label
|
||||||
if (cellValue === 0) {
|
if (cellValue?.value === 0) {
|
||||||
return display
|
return display
|
||||||
} else {
|
} else {
|
||||||
return <span class='text-danger'> {display} </span>
|
return <span class='text-danger'> {display} </span>
|
||||||
|
Loading…
Reference in New Issue
Block a user