fix: 修复搜索内容带'and'时查询出错的问题

This commit is contained in:
chenjinsong
2022-01-10 18:23:50 +08:00
parent 4c0b018c34
commit ea204a2bee

View File

@@ -459,7 +459,7 @@ export function objToStr (obj) {
}
// 搜索功能:字符串转对象
export function strToObj (n) {
const paramsArr = n.split(/\s[aA][nN][dD]\s/)
const paramsArr = n.split(/\sAND\s/)
const paramsObj = {}
paramsArr.forEach(string => {
const param = string.split('=')