Commit 36220b134d884d6cbc5c5df3c4d3b088ab94a2ed

Authored by 刘佳希‍
1 parent 08ac9c50

优化对include中属性的处理

Showing 1 changed file with 5 additions and 0 deletions
lib/components/include.js
... ... @@ -48,6 +48,11 @@ function _model(model, arg) {
48 48 include.call(this, model, arg.include);
49 49 }
50 50  
  51 + const copyArg = _.cloneDeep(arg)
  52 +
  53 + delete copyArg.where
  54 + delete copyArg.include
  55 + Object.assign(model, copyArg)
51 56 return model;
52 57 }
53 58  
... ...