Merge branch 'cherry-pick-3513a9c1' into 'dev-24.01-m22'

fix: 修复entity的搜索测试用例报错的问题

See merge request cyber-narrator/cn-ui!72
This commit is contained in:
陈劲松
2024-05-11 06:49:45 +00:00

View File

@@ -1203,7 +1203,7 @@ export default class Parser {
return { key: '[' + key + ']', isKey: false }
}
} else if (lowerQ.indexOf(' in ') > -1) {
const key = q.substring(0, q.indexOf(' in '))
const key = lowerQ.substring(0, lowerQ.indexOf(' in '))
const obj = this.columnList.find(t => t.label.toLowerCase() === key.toLowerCase())
if (obj) {
return { key: obj.label + q.substring(lowerQ.indexOf(' in '), q.length), isKey: true }