diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index f43e61c9b..7c89ba4e6 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -1069,7 +1069,7 @@ export default { if (keyCode == 8) { if (this.input_sreach == '') { this.searchMsg.searchLabelList.forEach((val, k) => { - if (this.select_list[this.sreach_num].id == val.id) { + if (this.select_list[this.sreach_num].label == val.label) { this.searchLabelList.splice(k + 1, 0, val) this.Iskeywords(this.sreach_num) } @@ -1085,7 +1085,7 @@ export default { if (keyCode == 8) { if (this.delcriteriaBool) { this.searchMsg.searchLabelList.forEach((val, k) => { - if (this.select_list[this.sreach_num].id == val.id) { + if (this.select_list[this.sreach_num].label == val.label) { this.searchLabelList.splice(k + 1, 0, val) this.Iskeywords(this.sreach_num) }