This commit is contained in:
Xu Chang 2023-12-08 12:02:49 +08:00
parent b72618160a
commit 08e695f272
2 changed files with 2 additions and 2 deletions

View File

@ -561,7 +561,7 @@ export default class TreeStore extends CascadeStore {
const attr2 = attr.startsWith('.') ? attr.slice(1) : attr;
const path2 = path ? `${path}.${attr2}` : attr2;
if (typeof p[attr] !== 'object') {
fns2.push(this.translatePredicate(path2, '$eq', filter[attr]));
fns2.push(this.translatePredicate(path2, '$eq', p[attr]));
}
else {
translatePredicateInner(p[attr], path2, fns2);

View File

@ -563,7 +563,7 @@ class TreeStore extends CascadeStore_1.CascadeStore {
const attr2 = attr.startsWith('.') ? attr.slice(1) : attr;
const path2 = path ? `${path}.${attr2}` : attr2;
if (typeof p[attr] !== 'object') {
fns2.push(this.translatePredicate(path2, '$eq', filter[attr]));
fns2.push(this.translatePredicate(path2, '$eq', p[attr]));
}
else {
translatePredicateInner(p[attr], path2, fns2);