fix: 修改 num为0 不显示图标的问题
This commit is contained in:
@@ -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') {
|
||||||
|
|||||||
@@ -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 !== '--') {
|
||||||
|
|||||||
Reference in New Issue
Block a user