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

This commit is contained in:
刘洪洪
2024-05-09 17:32:16 +08:00
parent df183c1836
commit 3513a9c145

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 }