CN-1258 fix: 修复实体搜索框多个条件与has函数并列时,has函数前缺少and操作符的问题

This commit is contained in:
刘洪洪
2023-08-25 15:44:18 +08:00
parent 8dca657868
commit 26352f1b9c
3 changed files with 11 additions and 4 deletions

View File

@@ -857,7 +857,11 @@ export function handleMetaListToStr (metaList) {
for (const i in lastObj) {
str += lastObj[i] + ' AND '
}
str = str.slice(0, -5) + ' ' + hasStr.slice(0, -5)
if (hasStr !== '') {
str = str + hasStr.slice(0, -5)
} else {
str = str.slice(0, -5)
}
return str
}