From 99653fc87a338d50afb308c7a580375d1fec7bc1 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 12 Jun 2023 16:44:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=BF=AE=E5=A4=8D=E9=AB=98?= =?UTF-8?q?=E7=BA=A7=E6=90=9C=E7=B4=A2=20=E5=8F=8D=E5=90=91=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=20=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/searchBox/searchBox.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/searchBox/searchBox.vue b/nezha-fronted/src/components/common/searchBox/searchBox.vue index 6e155cc82..5a8280043 100644 --- a/nezha-fronted/src/components/common/searchBox/searchBox.vue +++ b/nezha-fronted/src/components/common/searchBox/searchBox.vue @@ -819,9 +819,12 @@ export default { return } let name = this.key + let symbol = '' if (key[0] === '-' && key[1] === '*') { + symbol = '-*' name = '-*' + this.key } else if (key[0] === '-' || key[0] === '*') { + symbol = key[0] name = key[0] + this.key } if (findItem) { @@ -831,7 +834,7 @@ export default { } } else { this.selectArr.push({ - i18n: this.$t(findKeyItem.i18n), + i18n: symbol + this.$t(findKeyItem.i18n), code: findKeyItem.i18n, name: name, realValue: [realValue],