fix: 修改 num为0 不显示图标的问题

This commit is contained in:
zhangyu
2022-02-17 18:18:41 +08:00
parent d9837d5056
commit 0f2a774957
2 changed files with 2 additions and 2 deletions

View File

@@ -332,7 +332,7 @@ export default {
if (type === 'datacenter') { if (type === 'datacenter') {
tableId = 'dcTable' tableId = 'dcTable'
route += 'dc' route += 'dc'
} else if (type === 'alertRule') { } else if (type === 'alertRule' || type === 'alertrule') {
tableId = 'alertRuleTable' tableId = 'alertRuleTable'
route += 'alertRule' route += 'alertRule'
} else if (type === 'asset') { } else if (type === 'asset') {

View File

@@ -396,7 +396,7 @@ export default {
}, },
getPathContent (key) { getPathContent (key) {
let str = lodash.get(this.alertLabelData, key, '--') let str = lodash.get(this.alertLabelData, key, '--')
if (key === 'alertNum') { if (key === 'alertNum' || key === 'endpointNum' || key === 'assetNum' || key === 'cabinetNum' || key === 'moduleNum') {
str += '' str += ''
} }
if (key === 'pingInfo.rtt' && str && str !== '--') { if (key === 'pingInfo.rtt' && str && str !== '--') {