diff --git a/nezha-fronted/src/components/common/globalSearch/globalSearch.vue b/nezha-fronted/src/components/common/globalSearch/globalSearch.vue index 52dc9983f..0e3315b05 100644 --- a/nezha-fronted/src/components/common/globalSearch/globalSearch.vue +++ b/nezha-fronted/src/components/common/globalSearch/globalSearch.vue @@ -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') { diff --git a/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue b/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue index 46d24420a..9fd25ed5a 100644 --- a/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue +++ b/nezha-fronted/src/components/common/globalSearch/searchItemInfo.vue @@ -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 !== '--') {