lrf 1 рік тому
батько
коміт
15baaaff38
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/interface/SearchBase.ts

+ 2 - 1
src/interface/SearchBase.ts

@@ -1,4 +1,4 @@
-import { cloneDeep, omit, get, head, last } from 'lodash'
+import { cloneDeep, omit, get, head, last } from 'lodash';
 
 /**
  * @constructor
@@ -30,6 +30,7 @@ export class SearchBase {
     const result = {};
     for (const i of keys) {
       const value = this[i];
+      if (value === undefined) continue;
       if (this.like_prop.includes(i)) {
         // 处理模糊查询
         const propName = get(this.mapping, i, i);