fix: 修改 num为0 不显示图标的问题
This commit is contained in:
@@ -332,7 +332,7 @@ export default {
|
||||
if (type === 'datacenter') {
|
||||
tableId = 'dcTable'
|
||||
route += 'dc'
|
||||
} else if (type === 'alertRule') {
|
||||
} else if (type === 'alertRule' || type === 'alertrule') {
|
||||
tableId = 'alertRuleTable'
|
||||
route += 'alertRule'
|
||||
} else if (type === 'asset') {
|
||||
|
||||
@@ -396,7 +396,7 @@ export default {
|
||||
},
|
||||
getPathContent (key) {
|
||||
let str = lodash.get(this.alertLabelData, key, '--')
|
||||
if (key === 'alertNum') {
|
||||
if (key === 'alertNum' || key === 'endpointNum' || key === 'assetNum' || key === 'cabinetNum' || key === 'moduleNum') {
|
||||
str += ''
|
||||
}
|
||||
if (key === 'pingInfo.rtt' && str && str !== '--') {
|
||||
|
||||
Reference in New Issue
Block a user