fix(TreeTable): fix `Array.prototype.concat` on custom-tree-table page

This commit is contained in:
zthxxx 2018-10-28 14:53:55 +08:00
parent 8330905683
commit fd2b10b245
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default {
tmp = this.data tmp = this.data
} }
const func = this.evalFunc || treeToArray const func = this.evalFunc || treeToArray
const args = this.evalArgs ? Array.concat([tmp, this.expandAll], this.evalArgs) : [tmp, this.expandAll] const args = this.evalArgs ? [].concat([tmp, this.expandAll], this.evalArgs) : [tmp, this.expandAll]
return func.apply(null, args) return func.apply(null, args)
} }
}, },