diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index 9f3ebc2de..485e96c1e 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -39,7 +39,7 @@
- +
    @@ -1085,7 +1085,7 @@ export default { } } else { if (keyCode == 8) { - if (this.delcriteriaBool) { + if (this.delcriteriaBool || !this.input_sreach) { this.searchMsg.searchLabelList.forEach((val, k) => { if (this.select_list[this.sreach_num].label == val.label) { this.searchLabelList.splice(k + 1, 0, val) @@ -1164,7 +1164,7 @@ export default { this.input_list = true this.change_sreach_show = false this.sreach_num = ind - this.input_sreach = this.select_list[ind].val + this.input_sreach = this.select_list[ind].val ? this.select_list[ind].val : '' if (this.select_list[ind].type == 'input') { this.downBool = true } else {