fix: 修复高级搜索 反向匹配 显示不正确的问题

This commit is contained in:
zhangyu
2023-06-12 16:44:02 +08:00
parent 6577730e80
commit 99653fc87a

View File

@@ -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],