增加对a.b类型的key的支持

This commit is contained in:
zhl 2023-02-02 17:53:57 +08:00
parent a9c9012e32
commit 5cb1322d80

View File

@ -148,6 +148,9 @@ export abstract class BaseModule extends FindOrCreate {
}
} else if (key === '$or' || key == '$and') {
opt[key] = params[key]
} else if (key.indexOf('.') > 0) {
// 如果.在第一个字符, 明显是有问题的, 不需要处理这种
opt[key] = params[key]
}
}
if (params.hasOwnProperty('key') && params['key']) {