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);